因此,此声明适用于iOS 4和4.1,但不适用于旧版本。有什么建议?CSS3:为iPhone检测设备方向
@media screen and (device-width:320px) and (orientation:portrait) {
/* iPhone Portrait Styles Here*/
}
@media screen and (device-width:320px) and (orientation:landscape) {
/* iPhone Landscape Styles Here*/
}