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 >Web Front-end >CSS Tutorial >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!