iPad的横向方向锁定在JavaScript
问题描述:
可能重复:
How do I lock the orientation to portrait mode in a iPhone Web Application?
Force orientation on iPad - javascriptiPad的横向方向锁定在JavaScript
我创建的网页,我想只有在横向显示用户在iPad上。我的意思是当用户旋转iPad时,它应该仍然显示风景 有什么办法可以使用JavaScript来做到这一点?
在此先感谢。
答
这已经被问过:How do I lock the orientation to portrait mode in a iPhone Web Application?
总结:你不能“锁定”它,但你可以专门针对它,而且还得到通知,如果该设备处于纵向模式,并显示一条消息,用户。