【发布时间】:2011-12-01 20:52:23
【问题描述】:
这可能吗?这对我来说似乎是一个很好的解决方案,但我不确定它是否会起作用。
@media only screen
and (min-device-width : 320px)
and (max-device-width : 480px) {
/* Code for both portrait and landscape */
@media (orientation:portrait) {
/* Code for just portrait */
}
@media (orientation:landscape) {
/* Code for just landscape */
}
}
【问题讨论】:
标签: css media-queries