Mobile browsers place web pages in a virtual "window" (viewport), which is usually wider than the screen. This way, there is no need to squeeze each web page into a small window (which would destroy the layout of web pages that are not optimized for mobile browsers). Users can view different parts of the web page by panning and zooming. The mobile version of Safari has recently introduced the viewport meta tag, which allows web developers to control the size and scaling of the viewport. Other mobile browsers also basically support it. Viewport Basics A commonly used viewport meta tag for a mobile-optimized page looks like this: <meta name=”viewport” content=”width=device-width, initial-scale=1, maximum-scale=1″> width: controls the size of the viewport. You can specify a value, such as 600, or a special value, such as device-width, which is the width of the device (in CSS pixels when scaled to 100%). height: Corresponding to width, specifies the height. initial-scale: The initial zoom ratio, that is, the zoom ratio when the page is loaded for the first time. maximum-scale: The maximum scale to which the user is allowed to zoom. minimum-scale: The minimum scale to which the user is allowed to zoom. user-scalable: Whether the user can manually scale the image. Yes or No |
<<: Detailed explanation of the process of using GPU in Docker
>>: CSS screen size adaptive implementation example
Introduction Based on docker container and docker...
Table of contents 1. Introduction 2. es5 method 3...
OOM stands for "Out Of Memory", which m...
Table of contents Basic syntax for multi-table jo...
What is a mata tag The <meta> element provi...
The first parameter passing method is dynamic rou...
This article takes the deployment of Spring boot ...
Table of contents need Core Idea Two ways to impl...
Table of contents Separation effect Command line ...
1. Download the MySQL installation package First ...
Environment: (docker, k8s cluster), continue with...
Table of contents 1. Introduction 2. Output Infor...
Table of contents What is pre-analysis? The diffe...
Table of contents Preface Configure yum source, e...
Netease Kanyouxi official website (http://kanyoux...