移动端网页开发,在苹果手机上显示同一个表格里的字体一边大一边小

2025-04-16 04:11:40
推荐回答(1个)
回答1:

@media only screen and (min-width:320px){
body{font-size:11.5px!important}.viewport{max-width:320px}
}
@media only screen and (min-width:360px){
body{font-size:12.5px!important}.viewport{max-width:360px}
}
@media only screen and (min-width:480px){
body{font-size:16px!important}.viewport{max-width:480px}
}