首页 > 技术文章 > 响应式/rem

dahai5566 2020-08-13 13:44 原文

定义

  相对于根元素(html)的相对长度单位

 

media-query 响应式

@media only screen and (max-width: 374px) {

  html { font-size: 86px }

}

@media only screen and (min-width: 375px) and (max-width: 413px) {

  html { font-size: 100px }

}

推荐阅读