标签:竖屏 横屏 css 判断
//竖屏
@media all and (orientation : portrait){ }
//横屏
@media all and (orientation : landscape) { /*横屏时字体绿色*/
.p2txt i{font-size:1.4em;font-weight: 500; display: inline;margin-right:.5em;}
}
css 判断 移动设备 横屏 或 竖屏
原文地址:http://zhaoyingyatou.blog.51cto.com/7151735/1959354