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

能限定图片尺寸吗,因为是以 px 为单位来定位背景的,不方便改变父级大小 #3

Closed
forever-z-133 opened this issue Jul 11, 2017 · 1 comment

Comments

@forever-z-133
Copy link

当修改父级宽度时,旁边相连的 sprite 就出来了。
个人一般用 bg-size 的倍数,并用 % 为单位来定位背景。
我也不知道这样做对不对,但还是提一下吧。

@joeyguo
Copy link
Member

joeyguo commented Jul 12, 2017

@foreverZ133

(1) 优先支持了百分比的 CSS 输出,可自适应的图像,欢迎尝鲜: gka@1.4.7-beta.1

npm install -g gka@1.4.7-beta.1

输出:

xx_percent.html
xx-gka_percent.css

(2) 输出指定的图像尺寸,这个在规划中,欢迎关注

多谢反馈 💃

@joeyguo joeyguo closed this as completed Jul 12, 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