Here,: instruct the browser to control the size of the web page width=device-width set the screen width initial-scale= 1.0 is the initial zoom level"/> Here,: instruct the browser to control the size of the web page width=device-width set the screen width initial-scale= 1.0 is the initial zoom level">

Home  >  Article  >  Web Front-end  >  How to set the viewport?

How to set the viewport?

王林
王林forward
2023-08-26 22:21:19535browse

How to set the viewport?

Set the viewport using the following

<meta name = "viewport" content = "width = device-width, initial-scale = 1.0">

Here, : Instructs the browser to control the dimensions of the web page

width = device-width Set the screen width

        initial-scale = 1.0 is the initial zoom level

The above is the detailed content of How to set the viewport?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:tutorialspoint.com. If there is any infringement, please contact admin@php.cn delete