-
Notifications
You must be signed in to change notification settings - Fork 104
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
dpi=3的时候,1px边框显示不对。 #24
Comments
你说的是dpr吧? 能具体描述下显示不对,显示成什么了么? |
是的,dpr,写错了。 我把transform: scale(1/3); 改成transform: scale(0.3333);显示就正常了。 @include responsive(retina3x) {
width: 300%;
height: 300%;
@include transform(scale(1/3));
@if $radius != null {
border-radius: $radius * 3;
}
} 可能是这里@include transform(scale(1/3))没有做除法。 |
有可能和你的编译工具有关,2x的时候OK么? |
2x是OK的。很有可能,我没有用默认的编译工具。我自己装的node-sass,模块化引用的。 |
node-sass,看是不是未使用新版本 |
我用的node-sass, node-sass@3.7.0 |
嗯,我也刚才升级到了3.7.0,编译确实有问题,改成了 0.33333 |
感谢反馈 :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
应该是sass没有处理'/'为除法
-webkit-transform: scale(1/3);
transform: scale(1/3);
The text was updated successfully, but these errors were encountered: