uniapp web-view can not automatically landscape solution

default-user-image.png

Use the web-view component of the uni-app framework to load web pages, and the solution cannot be automatically landscaped

Case 1: User settings problem (a small part)

1. IOS as long as the settings are turned on and off the vertical screen switch of the mobile phone (if it is turned on)

2. Android is the same

Case 2: uniapp modifies the configuration

Tried it, no effect

efficient:

pages.json

“globalStyle”:{

“pageOrientation”: “auto”

}

This article is reprinted from https://blog.p2hp.com/archives/8488
This site is for inclusion only, and the copyright belongs to the original author.

Leave a Comment