【发布时间】:2012-08-28 17:55:31
【问题描述】:
我有一台 Google Nexus 7 平板电脑,用于测试一些响应式设计。在 Javascript 中,screen.width 按预期返回 800 像素(本机分辨率)。
当屏幕的最大宽度> 720px时,平板电脑为什么会拾取以下媒体查询?
@media only screen and (max-width: 720px) and (orientation: portrait) {
.test{ background: red;}
}
【问题讨论】:
-
对我来说是正确的 - 你有没有试过在 jsfiddle 上这样做,没有其他影响?它仍然适用吗?
-
这些可能会帮助你
http://css-tricks.com/forums/discussion/17586/media-queries-with-identical-width/p1
标签: html css responsive-design media-queries