- @media only screen and (min-width: 320px) {
- ////iphone5
- html,
- body {
- font-size: 55.556% !important;
- }
- }
- @media only screen and (min-width: 360px) {
- // 一般安卓手机
- HTML,
- body {
- font-size: 62.5% !important;
- }
- }
- @media only screen and (min-width: 375px) {
- //iphone6/7/8
- HTML,
- body {
- font-size: 65.10417% !important;
- }
- }
- @media only screen and (min-width: 414px) {
- //iphone6/7/8 plus
- HTML,
- body {
- font-size: 71.875% !important;
- }
- }
- @media only screen and (min-width: 768px) {
- //iPad
- HTML,
- body {
- font-size: 133.3333% !important;
- }
- }
- @media only screen and (min-width: 1024px) {
- //iPad pro
- HTML,
- body {
- font-size: 177.77778% !important;
- }
- }
来源: http://www.bubuko.com/infodetail-3102736.html