目录

What should I do if a web page is zoomed out when the vh unit is used for page adaptation?

Symptom

When the vh unit is used for web page adaptation on the frontend page loaded by ArkWeb, the page is abnormally zoomed out.

Possible Causes

Currently, the ArkWeb component determines whether the viewport parameter of the meta tag on the frontend HTML page is enabled or disabled based on whether User-Agent contains the Mobile field. If User-Agent does not contain the Mobile field, the viewport parameter in the meta tag is disabled by default. As a result, the web page may be abnormal, affecting the page layout.

Solution

Reference

metaViewport

Developing User-Agent