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

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

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