【发布时间】:2017-03-15 17:18:53
【问题描述】:
我无法让 iPhone 6+ 的横向媒体查询正常运行。肖像工作得很好。
我在 iPhone 5 上使用 @media only screen and (min-width:320px) and (max-width:568px) and (orientation: landscape) {},在 iPhone 6+ 上使用 @media only screen and (min-width:414px) and (max-width:736px) and (orientation: landscape) {} - 但后来 iPhone 5 变成了我为 iPhone 6+ 编写的内容。直到我将736px宽度更改为800px宽度,iPhone 6+才会改变。
我已经尝试了很多关于堆栈溢出的不同内容,但没有任何效果。由于某种原因 min/max-DEVICE-width 对我不起作用。
我正在使用 Google Chrome 的响应式网页设计测试器进行测试(我没有 iPhone 6+ 进行测试)。
我的<head> 标签中有<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">。
请帮忙!
【问题讨论】:
标签: html css iphone media-queries