Home  >  Article  >  Web Front-end  >  How to implement the viewport in the meta tag to control the css properties of the device screen

How to implement the viewport in the meta tag to control the css properties of the device screen

php中世界最好的语言
php中世界最好的语言Original
2018-02-01 09:57:351712browse

This time I will show you how to operate the viewport in the meta tag to control the css properties of the device screen, and use the viewport in the meta tag to control the css properties of the device screen. NotesWhat are the following? Let’s take a look at the actual cases.

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

width-width of the viewport

height-Height of the viewportinitial-scale The initial scaling ratio
minimum-scale The minimum ratio that the user is allowed to zoom to
maximum-scale The maximum ratio that the user is allowed to zoom to
user-scalable Whether the user can manually zoom

I believe you have mastered the method after reading these cases. For more exciting things, please pay attention to php Chinese Other related articles online!

Related reading:

How a tag uses the href attribute and onclick event

css3’s new unit vw, vh, How to use vmin and vmax

How to use H5's WebGL to implement the roaming animation of the 3D virtual computer room

How about canvas Implementing github404 dynamics

How does H5's file domain FileReader read files in segments and upload them to the server

The above is the detailed content of How to implement the viewport in the meta tag to control the css properties of the device screen. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn