body {
font-size: 18px;
}
@media only screen and (max-width: 300px) {
body {
font-size: 16.666666px;
}
.viewport {
max-width: 300px;
}
}
@media only screen and (max-width: 310px) and (min-width: 300px) {
body {
font-size: 16.666666px;
}
.viewport {
max-width: 310px;
}
}
@media only screen and (max-width: 320px) and (min-width: 310px) {
body {
font-size: 17.22222px;
}
.viewport {
max-width: 320px;
}
}
@media only screen and (max-width: 350px) and (min-width: 320px) {
body {
font-size: 17.77778px;
}
.viewport {
max-width: 350px;
}
}
@media only screen and (max-width: 360px) and (min-width: 350px) {
body {
font-size: 19.44444px;
}
.viewport {
max-width: 360px;
}
}
@media only screen and (max-width: 400px) and (min-width: 360px) {
body {
font-size: 20px;
}
.viewport {
max-width: 400px;
}
}
@media only screen and (max-width: 470px) and (min-width: 400px) {
body {
font-size: 22.22222px;
}
.viewport {
max-width: 470px;
}
}
@media only screen and (max-width: 480px) and (min-width: 470px) {
body {
font-size: 26.11112px;
}
.viewport {
max-width: 480px;
}
}
@media only screen and (max-width: 540px) and (min-width: 480px) {
body {
font-size: 26.66666px;
}
.viewport {
max-width: 540px;
}
}
@media only screen and (max-width: 560px) and (min-width: 540px) {
body {
font-size: 30px;
}
.viewport {
max-width: 560px;
}
}
@media only screen and (max-width: 570px) and (min-width: 560px) {
body {
font-size: 31.11112px;
}
.viewport {
max-width: 570px;
}
}
@media only screen and (max-width: 630px) and (min-width: 570px) {
body {
font-size: 31.66666px;
}
.viewport {
max-width: 630px;
}
}
@media only screen and (max-width: 640px) and (min-width: 630px) {
body {
font-size: 35px;
}
.viewport {
max-width: 640px;
}
}
@media only screen and (max-width: 710px) and (min-width: 640px) {
body {
font-size: 35.55556px;
}
.viewport {
max-width: 710px;
}
}
@media only screen and (max-width: 720px) and (min-width: 710px) {
body {
font-size: 39.44444px;
}
.viewport {
max-width: 720px;
}
}
@media only screen and (min-width: 720px) {
body {
font-size: 40px;
}
.viewport {
width: 720px;
}
}
移动端字体重设
最新推荐文章于 2021-06-19 10:43:36 发布