ChinaCJM
移动端建议根据不同屏幕大小进行处理。可以在css中添加以下参数进行屏幕适配@media screen and (max-width:640px){html{font-size:100px;}}
@media screen and (max-width:580px){html{font-size:90px;}}
@media screen and (max-width:540px){html{font-size:84px;}}
@media screen and (max-width:480px){html{font-size:75px;}}
@media screen and (max-width:428px){html{font-size:62px;}}
@media screen and (max-width:375px){html{font-size:58px;}}
@media screen and (max-width:360px){html{font-size:56px;}}
@media screen and (max-width:320px){html{font-size:50px;}}
body{ font-size:0.25rem; }然后长度一般使用rem。以上数据根据实际情况进行更改。