Greetings to all!

How can I prevent screen rotation using Jquery Mobile or simple CSS, JS or PhoneGap?

    2 answers 2

    In general, you can get this information, here's the article: Viewports on mobiles are true, it’s English, but an approximate translation The Tale of Two Viewports is about triggering the window.onresize event and resizing the <HTML>

      Not. The phone's OS is responsible for the screen rotation, which cannot be accessed

      • I mean that the content itself does not turn over. - V_Tjuryakin
      • I understood. You will not be able to read information about tilting your phone from the accelerometer - inferusvv
      • Why is this? If we talk about Phonegap, then in javascript objects are embedded and access through them to the capabilities of the device. there is an accelerometer and a camera and gps and so on. [PhoneGap orientation example] [1] Another thing to ban ... [1]: raymondcamden.com/index.cfm/2011/11/4/… - Yura Ivanov