Home >Web Front-end >HTML Tutorial >Disable the browser from scaling the HTML code of a web page_html/css_WEB-ITnose

Disable the browser from scaling the HTML code of a web page_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:48:282222browse

HTML code that prohibits browsers from scaling web pages

html5 allows users to scale pages by default. If we need to disable scaling, we need to set user-scalabel=0. The specific code is as follows:

<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" name="viewport" />

Note: meta is in the head.

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