Home > Web Front-end > H5 Tutorial > HTML5 common meta tag attributes

HTML5 common meta tag attributes

高洛峰
Release: 2016-10-15 17:08:19
Original
1348 people have browsed it

The page will be displayed in its original size in the iPhone's browser, no zooming is allowed.


width - the width of the viewport height - the height of the viewport
initial-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 scale



to remove the default Apple toolbar and menu bar. content has two values ​​"yes" and "no". When we need to display the toolbar and menu bar, there is no need to add this line of meta. The default is to display it.


After adding to the home screen, "display full screen

"


The function is to control the status bar display style status-bar-style: black dark black status-bar-style: black-translucent light gray


Ignore the recognition of email addresses in the Android platform




Disable page caching







Default on iPhone Yes (the phone number is displayed as a dial-up hyperlink):


You can set telephone=no, then the mobile phone number is not displayed as a dial-up link





iOS devices are private to the meta definition Attributes: (can be added to the home screen)


The website enables support for web app programs.

The color of the status bar (top bar of the screen) in web app applications;
The default value is default (white), which can be set to black (black) and black-translucent (gray translucent).
If the value is "black-translucent", it will occupy the px position of the page and float above the page (it will cover the 20px height of the page - the Retina screen of iphone4 and itouch4 is 40px).


Related labels:
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