开发者

iPad Landscape orientation lock in JavaScript [duplicate]

This question already has answers here: Closed 11 years ago.

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜