Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

图片样式好像有问题 #10

Closed
jueduizone opened this issue Jan 29, 2017 · 2 comments
Closed

图片样式好像有问题 #10

jueduizone opened this issue Jan 29, 2017 · 2 comments

Comments

@jueduizone
Copy link

node版本6.9.1
npm版本3.10.8
启动后,样式有问题,图片显示不全(编译启动正确,没有报错),如图:
image

@jueduizone jueduizone changed the title 样式有问题 图片样式好像有问题 Jan 29, 2017
@booxood
Copy link
Collaborator

booxood commented Jan 29, 2017

是的。由于增加了一个配置项 enableSpritesOnDev(默认为 false,dev 时不会合成雪碧图)引起的。解决办法:

  1. 修改 enableSpritesOnDevtrue
  2. 修改 src/css/main.scss 样式文件,给所有设置了 background-imageclass 再增加一个属性 background-size: contain

@booxood booxood closed this as completed Mar 19, 2017
@booxood
Copy link
Collaborator

booxood commented Mar 19, 2017

已更新模板的样式文件

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants