Meta viewport enables full screen display control of web pages in iPhone

Time:2021-6-23

Helpless, suddenly thought, I often visit Sina touch screen version is how to do? Open opera,
Look at the source code and find the meta viewport in the HTML header. Is this guy playing a role?
Plus try, sure enough, the screen is full. By the way, I checked the function of this label and recorded it for convenience in the future
use.
meta viewport
<meta name=”viewport” content=”width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no”/>

Among them:
Width – the width of the viewport
Height – the height of the viewport
Initial scale – the initial scale
Minimum scale – the minimum scale the user is allowed to zoom to
Maximum scale – the maximum scale the user is allowed to zoom to
User scalable – whether the user can zoom manually

Recommended Today

Cloud native enthusiast weekly: kubesphere 3.3.0 alpha release

Open source project recommendation Collection of Linux eBPF slides/documents This project collects all kinds of information related to ebpf, which is very comprehensive. magic-trace Magic trace is a Linux performance analysis tool, which can be used to analyze the performance problems of applications and kernels. Unlike perf, magic trace does not sample the call stack […]