HTML meta viewport attribute description
What is Viewport
Mobile browsers place the page in a virtual window (viewport). Usually, the virtual window (viewport) is wider than the screen, so that each web page does not have to squeeze each web page into a very small window (this will destroy the layout of the web page that is not optimized for mobile browsers). Users can see different parts of the web page through panning and zooming. The mobile version of Safari browser has recently introduced the meta tag of viewport, which allows web developers to control the size and zoom of viewport, and other mobile browsers also basically support it.
Viewport Basics
The viewport meta tag of a commonly used page optimized for mobile web pages is roughly as follows:
Copy the code