响应式/rem

定义

  相对于根元素(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 }

}

posted @ 2020-08-13 13:44  大海博客  阅读(81)  评论(0)    收藏  举报