【发布时间】:2013-04-19 00:49:55
【问题描述】:
一如既往,感谢您的帮助。
我正在尝试编写一个复杂的媒体查询,想知道是否有人可以提供帮助。
- 我想对所有在任一方向上宽度或高度都小于 640 像素的设备使用 small.css
- 我想为所有宽度和高度大于 640 像素的设备使用 large.css
这就是让我着迷的部分 - 我想打破上面的规则并使用
- large.css 如果设备是横向且宽度大于 639px
- 如果设备是纵向且宽度小于 640 像素,则为 small.css
这是我现在拥有的
"only screen and (min-device-width:320px) and (max-device-width:639px)"
"only screen and (min-device-height:320px) and (max-device-width:639px)"
"only screen and (min-device-width:640px)"
任何帮助将不胜感激!
谢谢
丰富
【问题讨论】:
标签: css mobile orientation media-queries