iPad Landscape orientation lock in JavaScript [duplicate]
Possible Duplicates:
How do I lock the orientation to portrait mode in a iPhone Web Appl开发者_Python百科ication? Force orientation on iPad - javascript
I have created webpage which I want to show user in iPad only in landscape orientation. I mean when user rotate iPad verticly it should still show landscape Is there any way to do it using JavaScript?
Thanks in advance.
This has been asked before: How do I lock the orientation to portrait mode in a iPhone Web Application?
Summary: You can't "lock" it, but you can specifically target it, but also get notified if the device is in Portrait mode and display a message to the user.
精彩评论