这是我搜索了很长时间的一个bug,没有发现任何关于它的东西。
在我正在进行的一个项目中,我开始使用REM单元。在每一个有文字的元素中,我都给出字体大小和线条高度。
我不知道为什么,但不知何故,它不理解直线高度与快速眼动,并采取行动,它是没有快速眼动。
html{
font-size:1px;
}
.fu{
font-size:20rem;
line-height:24rem;/*old android, act like 24 without the REM Unit*/
}
/*normal browser - line-height 24*1 = 24px(root-font-size)
old android browser and webview line-height 24 * 20(font-size) = 480px*/
实例化 (桌面和旧安卓系统中的手表)
我会很高兴有一个合适的解决方案,使我能够使用REM单位在直线高度。
发布于 2015-01-17 18:19:33
Yo不能在android 2.*中使用rem线高度。
解决办法:
使用多个字体大小
示例
html{
font-size:1px;
}
.fu{
font-size:20rem;
line-height:1.2; /*1.2 equal to 24rem(in this case) and will resolve conflict in old android*/
}
https://stackoverflow.com/questions/25034158
复制相似问题