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

设置html-font-size无效 #7

Open
justin107 opened this issue Dec 20, 2016 · 3 comments
Open

设置html-font-size无效 #7

justin107 opened this issue Dec 20, 2016 · 3 comments

Comments

@justin107
Copy link

justin107 commented Dec 20, 2016

最近在学stylus,安装stylus-px2rem使用正常,但是不能设置改变html-font-size
代码如下
//引用stylus-px2rem
@import "~stylus-px2rem/index"
html-font-size = 75px;
能转换成rem,但是好像都是基于16,也并不是10px
望解答,谢谢

看你实例也一样,是16不是默认的10px,请问这样算不算BUG。。。

@jaywcjlove
Copy link
Owner

jaywcjlove commented Dec 20, 2016

这是一个bug,刚更新了个版本...

更新 + [email protected]

@justin107
Copy link
Author

回应速度真给力,我捣腾了一下午,发现还有一处已知BUG
background: -webkit-gradient(linear, left top, left bottom, color-stop(0, #fff), color-stop(1, #000));
的时候,px2rem好像会转化成top() ,left()
我也不能确定,因为我也在玩
http://tj.github.io/nib/
晚点在验证一下
作者加油哈!真的做好了,很方便

@jaywcjlove
Copy link
Owner

回头我验证一下。

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