横屏与竖屏

@media screen and (min-device-width: 768px) {
/* 竖屏CSS */
@media (orientation: portrait ){
.book-rand-author{
margin-top:0.45em;
}
}
/* 横屏CSS */
@media ( orientation: landscape ){
.book-rand-author{
margin-top:0.36em;
}
}
}

posted on 2017-09-11 17:25  dandan1122  阅读(150)  评论(0编辑  收藏  举报