rem根据网页的根元素(html)来设置字体大小时间:2023-03-09 18:43:12 rem根据网页的根元素来设置字体大小,和em(font size of the element)的区别是,em是根据其父元素的字体大小来设置,而rem是根据网页的跟元素(html)来设置字体大小