@media only screen and (device-width : 375px) and (device-height : 812px) and (-webkit-device-pixel-ratio : 3) { }
iPhone 8
@media only screen and (device-width : 375px) and (device-height : 667px) and (-webkit-device-pixel-ratio : 2) { }
iPhone 8 Plus
@media only screen and (device-width : 414px) and (device-height : 736px) and (-webkit-device-pixel-ratio : 3) { }
iPhone 6 + / 6s + / 7 + / 8 +具有相同的尺寸,而iPhone 7/8也具有相同的尺寸。
寻找特定方向?
肖像
and (orientation : portrait)
景观
添加以下规则:
and (orientation : landscape)
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)