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
Release: 2016-06-24 11:48:28
Original
2248 people have browsed it

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" />
Copy after login

Note: meta is in the head.

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template