您的位置:首页 > 移动开发

移动端-rem使用

2017-09-05 10:48 148 查看
html {
font-size : 20px;
}
@media only screen and (min-width: 320px){
html {
font-size: 17px !important;
}
}
@media only screen and (min-width: 360px){
html {
font-size: 19.2px !important;
}
}
@media only screen and (min-width: 375px){
html {
font-size: 20px !important;
}
}
@media only screen and (min-width: 401px){
html {
/*font-size: 22.2px !important;*/
font-size: 22px !important;
}
}
@media only screen and (min-width: 428px){
html {
font-size: 26.75px !important;
}
}
@media only screen and (min-width: 481px){
html {
font-size: 30px !important;
}
}
@media only screen and (min-width: 569px){
html {
font-size: 35px !important;
}
}
@media only screen and (min-width: 641px){
html {
font-size: 40px !important;
}
}

rem=px/40
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: