码迷,mamicode.com
首页 > Web开发 > 详细

rem根据网页的根元素(html)来设置字体大小

时间:2017-04-21 18:51:02      阅读:216      评论:0      收藏:0      [点我收藏+]

标签:bsp   ges   log   rem   网页   区别   设置字体大小   logs   alt   

rem根据网页的根元素来设置字体大小,和em(font size of the element)的区别是,em是根据其父元素的字体大小来设置,而rem是根据网页的跟元素(html)来设置字体大小

技术分享

 

rem根据网页的根元素(html)来设置字体大小

标签:bsp   ges   log   rem   网页   区别   设置字体大小   logs   alt   

原文地址:http://www.cnblogs.com/sunnie-cc/p/6744960.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!