【发布时间】:2014-12-19 03:06:43
【问题描述】:
我正在尝试为 iphone 5 设置媒体查询,为 iphone 6 设置不同的媒体查询。但是由于某种原因,我的查询似乎重叠:
iPhone 6
@media only screen
and (min-device-width : 375px)
and (max-device-width : 667px)
and (orientation : portrait) { /* STYLES GO HERE */ }
iPhone 5
@media only screen
and (min-device-width : 320px)
and (max-device-width : 568px)
and (orientation : portrait) { /* STYLES GO HERE */ }
由于某种原因,我在 iPhone 5 的媒体查询中声明的内容也显示在 iPhone 6 上。查询是否重叠?我认为这两个条件都必须满足。
我正在使用来自 xcode 的最新 iphone 模拟器。
【问题讨论】:
标签: css iphone media-queries