【发布时间】:2013-01-27 01:34:12
【问题描述】:
有一个与此相关的问题: Media Query for iPad (Landscape) applied to Samsung Galaxy Tab 2 (Landscape) as well
我的问题是,将 Android Samsung Galaxy Tab 2 10.1(Chrome 浏览器 18)上的 Chrome 浏览器检测为纵向模式的媒体查询是什么。
我目前正在使用:
@media all and (min-width: 479) and (max-width: 1199) and (max-device-width:1199px and (orientation: portrait)
但它不起作用。它可以在 Android 网络浏览器上运行,但一旦您将其翻转到横向模式然后再返回纵向模式,它将无法正常工作。它仅在您以纵向模式加载页面时才有效。
【问题讨论】:
标签: android css google-chrome responsive-design media-queries