返回顶部

收藏

iPad Orientation CSS 修正版

更多
<!-- css -->
@media only screen and (max-device-width: 1024px) and (orientation:portrait) {
    .landscape { display: none; }
}
@media only screen and (max-device-width: 1024px) and (orientation:landscape) {
    .portrait { display: none; }
}

<!-- example markup -->
<h1 class="portrait">Your device orientation is "portrait"<h1>
<h1 class="landscape">Your device orientation is "landscape"<h1>
//该片段来自于http://outofmemory.cn

标签:css,网页设计

收藏

0人收藏

支持

0

反对

0

发表评论