CSS3: Detecting device orientation for iPhone

后端 未结 2 1105
隐瞒了意图╮
隐瞒了意图╮ 2021-01-21 12:05

So this declaration works fine for iOS 4 and 4.1, but not for older versions. Any advice?

@media screen and (device-width:320px) and (orientation:portrait) {
           


        
2条回答
  •  清歌不尽
    2021-01-21 12:35

    we use javascript to do this, in a similar way to this:

    Can js/jQuery determine the orientation of the iPhone?

提交回复
热议问题