横屏竖屏
甚至连宽高比的计算都省略了...
设置CSS3(@media)横竖屏样式
//竖屏时使用的样式
@media all and (orientation:portrait) {
code here ...
}
//横屏时使用的样式
@media all and (orientation:landscape) {
code here ...
}
甚至连宽高比的计算都省略了...
设置CSS3(@media)横竖屏样式
//竖屏时使用的样式
@media all and (orientation:portrait) {
code here ...
}
//横屏时使用的样式
@media all and (orientation:landscape) {
code here ...
}