![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
rem
arthur09
这个作者很懒,什么都没留下…
展开
-
手机端文字用rem有的地方会文字模糊
因为font-size计算的时候出现小数,在font-size最好不要用rem要根据dpr去算一下。 用个适配库,比如手淘的那个flexible 或者用less 或sass封装个公用方法原创 2017-05-04 18:11:20 · 1081 阅读 · 0 评论 -
html中rem的基本代码
html { font-size: 62.5% } @media only screen and (min-width: 481px) { html { font-size: 94% !important } } @media only screen and (min-width: 561px) { html { font-siz原创 2017-06-20 14:07:30 · 984 阅读 · 0 评论