css方法 - 移动端h5在iphonex的适配
1 @media only screen and (device-width:375px) and (device-height:812px) and (-webkit-device-pixel-ratio:3) { 2 body:after { 3 content: ''; 4 z-index: 9998; 5 position: fixed; 6 left: 0; 7 bottom: -.68rem; 8 width: 100%; 9 height: .68rem; 10 background: #fff 11 } 12 }
越努力,越幸运;阿门。