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
针对部分Android机型的根px不等于设置的px,导致rem误差的解决方案 #97
Comments
fly-studio
changed the title
针对部分Android机型的rem解决方案
针对部分Android机型的根px不等于设置的px,导致rem误差的解决方案
Nov 24, 2016
所以最终的设置JS代码为
设置循环100次跳出也是无奈之举,鬼晓得那个设备能不能设置到预定的值 |
看看是不是和 Font Boosting (amfe/article#10) 有关系 |
Android 实在是太坑爹了,各种厂商自己搞自己的 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
比如华为的某款老机型,因为他们算法的问题,设置的fontSize,不等于最终编译得到的
根据实验,设置为42px的时候,华为会计算为36px
将上例改为,必须!important 才能让页面有效
The text was updated successfully, but these errors were encountered: