适配竖屏和横屏

适配竖屏和横屏

1
2
3
4
<!-- 竖直版(普通手机)-->
<link media="all and (orientation:portrait)" href="/static/css/index-portrait.css" type="text/css" rel="stylesheet">
<!-- 横屏版(普通电脑 ipad 横屏)-->
<link media="all and (orientation:landscape)" href="/static/css/index-landscape.css" type="text/css" rel="stylesheet">

推荐文章