【发布时间】:2013-06-30 20:31:50
【问题描述】:
我正在尝试为智能手机方向和桌面设置不同的媒体查询,我想定位纵向和横向。我知道所有其他堆栈链接,例如:
Media query to target most of smartphone 3 media queries for iphone portrait, landscape and ipad portrait
但我仍然有问题,我的景观之一不工作,这是我正在使用的代码:
Desktop css first
-- css for desk --
Portrait:
@media only screen
and (min-device-width: 320px)
and (max-device-width: 479px) {
}
Landscape:
@media only screen
and (min-device-width: 480px)
and (max-device-width: 640px) {
}
横向代码就像没有考虑过
【问题讨论】:
标签: css media-queries