Viewport control device screen CSS in meta tag


Copy code

The code is as follows:

<meta name=”viewport” content=”width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no”>

Width viewport width height viewport height
Initial scale initial scale
Minimum scale the minimum scale that users are allowed to zoom to
Maximum scale the maximum scale a user can zoom to
User scalable can users manually scale