orientation:portrait | landscape
portrait:指定输出设备中的页面可见区域高度大于或等于宽度
landscape:除portrait值情况外,都是landscape
使用:
@media screen and (orientation: portrait){
// "竖屏"
}
@media screen and (orientation: landscape){
// "横屏"
}
portrait:指定输出设备中的页面可见区域高度大于或等于宽度
landscape:除portrait值情况外,都是landscape
使用:
@media screen and (orientation: portrait){
// "竖屏"
}
@media screen and (orientation: landscape){
// "横屏"
}