iPhone X88 Plus CSS媒体查询

iPhone X88 Plus CSS媒体查询,第1张

iPhone X / 8/8 Plus CSS媒体查询 iPhone X
@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)


欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/5567052.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-14
下一篇 2022-12-14

发表评论

登录后才能评论

评论列表(0条)

保存