一、使用flexible.js去设置份数、cssrem设置基准值
这里设置的是份数
- 份数
下面这个则设置基准数 cssrem插件里
- 基准数
二、把屏幕的宽度约束在1024~1920之间又适配
@media screen and (max-width:1024px) {
html {
font-size: 42.66px !important;
}
}
@media screen and (max-width:1920px) {
html {
font-size: 80px !important;
}
}