media适配css

/*引入适配的less*/
html {
  font-size: 16px;
}
@media only screen and (min-width: 320px) {
  html {
    font-size: 13.6533px !important;
  }
}
@media only screen and (min-width: 360px) {
  html {
    font-size: 15.36px !important;
  }
}
@media only screen and (min-width: 375px) {
  html {
    font-size: 16px !important;
  }
}
@media only screen and (min-width: 400px) {
  html {
    font-size: 17.0667px !important;
  }
}
@media only screen and (min-width: 414px) {
  html {
    font-size: 17.664px !important;
  }
}
@media only screen and (min-width: 480px) {
  html {
    font-size: 20.48px !important;
  }
}
@media only screen and (min-width: 750px) {
  html {
    font-size: 32px !important;
  }
}

猜你喜欢

转载自www.cnblogs.com/hanxuming/p/9268782.html