Css做到横竖屏适配:定义两个样式
{
@media screen and (orientation: portrait){
Css[竖向定义样式]
}
@media screen and (orientation: landscape){
Css[横向定义样式]
}
}
Css做到横竖屏适配:定义两个样式
{
@media screen and (orientation: portrait){
Css[竖向定义样式]
}
@media screen and (orientation: landscape){
Css[横向定义样式]
}
}