搞了好久的rem布局,发现还是em好用啊,设置根字体大小就行,flexible那个方案真的有点绕…不过现在项目里还在用,反正能跑就行了吧
html {
font-size: 16px;
}
body {
font-size: 1rem;
}
登录/注册