您的位置:首页 > 其它

When to Use Em vs. Rem

2016-01-28 11:05 411 查看
Both
em
and
rem
are flexible, scalable units which are translated by the browser into pixel values, depending on the font size settings in your design.





While
em
is relative to the font-size of its direct or nearest parent,
rem
is only relative to the html (root) font-size.







内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: