![]() ![]() The value “natural” displays the website in the device’s natural orientation, which varies from device to device. This allows the device to apply any orientation depending on the physical orientation of the device. The screen orientation can be adjusted via the screen.orientation property and the lock() method. By using the HTML5 Screen Orientation API, you can now define the screen orientation in JavaScript. The app will then only be displayed in the preset format – independently from the actual device orientation. The format of native apps can be specified in such a case. But sometimes you may want your website locked to a particular orientation, portrait or landscape. Media queries allow websites to adjust their layout depending on the screen orientation of a smartphone or tablet. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |