媒体查询判断横竖屏

@media all and (orientation:portrait){
    /* 竖屏 */
}
@media all and (orientation:landscape){
    /* 横屏 */
}

你可能感兴趣的:(媒体查询判断横竖屏)