Skip to content

Instantly share code, notes, and snippets.

@zhengjunwei
Created March 17, 2015 02:47
Show Gist options
  • Save zhengjunwei/71066e4c59996616eb3d to your computer and use it in GitHub Desktop.
Save zhengjunwei/71066e4c59996616eb3d to your computer and use it in GitHub Desktop.
CSS自适应用rem
media screen and (min-width:320px){html{font-size:12px;}}
media screen and (min-width:375px){html{font-size:14px;}}
.class{font-size:1rem;}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment