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

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

 

posted on 2017-04-21 18:32  sunnie_c  阅读(733)  评论(0编辑  收藏  举报