H5 forced mobile phone browser landscape

H5 forced horizontal screen phone

1. function may be defined by the direction of the phone screen screen.orientation, but lock () method only in full-screen mode is switched to the browser has passed requestFullscreen (), Example: a mobile phone force horizontal screen window.screen.orientation.lock ( " landscape-primary ");

2. The browser in order to have a full-screen requirements, user interaction is required, the general definition of a clear trigger full-screen full-screen clicks

3. Note: millet browser wonderful: as long as the full screen will automatically rotate to landscape

4. The horizontal screen forcibly tested: uc unavailable and Firefox, Google can be used; however, no post uc full screen to unlock the phone screen can be automatically rotated as long as the rotation landscape

Guess you like

Origin www.cnblogs.com/dlm17/p/12345407.html