@@media screen and (orientation:portrait){
body{
transform: rotate(90deg);
}
}
将以上 CSS 加入网页,可以发现手机上查看时网页横向显示了。
转自:https://segmentfault.com/q/1010000009286701
@@media screen and (orientation:portrait){
body{
transform: rotate(90deg);
}
}
将以上 CSS 加入网页,可以发现手机上查看时网页横向显示了。
转自:https://segmentfault.com/q/1010000009286701