/*This header indicates that if GCF is installed, GCF will be used to render the page. If GCF is not installed, the highest version of the IE kernel will be used for rendering. */
/*This header indicates that the IE browser is simulated with IE7 , IE9 still uses IE9 to render */
/*Header Declaration is beneficial to SEO*/
/*General abbreviation like this is enough*/
/*This is the label prompt of the website*/
/*It can prevent users from touching the enlargement screen*/
/*Generally this way of writing is enough*/
/*This way of writing is more rigorous, but it is not necessary. The effect is the same as above*/
/*width - viewport width height - the height of the viewport
initial-scale - the initial scaling ratio
minimum-scale - the minimum scale that the user is allowed to zoom to
maximum-scale - the maximum scale that the user is allowed to zoom to
user -scalable - whether the user can manually zoom*/
/* This is a method of writing ico in html. In addition, both the js and php background can control the replacement of ico in the original static html*/
/* Among themThis code is the most critical*/
/*The code below can also display the icon in the favorites*/
First: Optimized for handheld devices, mainly for some older and older devices. Browsers that recognize viewports, such as BlackBerry (although BlackBerry has a very low market share in China, there are advantages to multiple companies)
Second: Microsoft's old-fashioned browser (you can not use this, it is basically gone. )
Third: UC Browser (a mobile browser with a strong market share)
Forced vertical screen:
Force full screen:
Application mode:
QQ browser (I won’t say more about Tencent, the user group is there)
Mandatory Portrait screen:
Force full screen:
Application mode:
Fourth: windows phone click without highlight
Sixth: Ignore the numbers in the page and identify them as phone numbers and an email identification
Here you can set address=no;email=no;telephone=no separated by semicolons.
Seventh: Whether to enable the webapp function will delete the default Apple toolbar and menu bar
Eighth: When starting the webapp function, display the top navigation of mobile phone signal, time and battery The color of the bar.
Ninth: Hide the browser navigation bar
How to turn off the automatic keyboard in iOS Capitalization
We know that in iOS, when the virtual keyboard pops up, the keyboard is enabled by default to capitalize the first letter
The mobile version of webkit provides the autocapitalize attribute for the input element, by specifying autocapitalize=" off" to turn off the keyboard's default capitalization
Cache Control
HTTP Refresh
WAP browsers do not support the tag to control caching, but they do know the meaning of the HTTP header "Cache-Control: no-cache". In this case,
The solution is to set the HTTP header in the HTTP response on the server side
/*About forcing full screen IOS*/
/* Regarding the label issue, each browser may have its own setting method. This is the document link address of IOS*/
https://developer.apple.com/library /safari/documentation/AppleApplications/Reference/SafariHTMLRef/Articles/MetaTags.html
About setting the function of adding a home screen to the IOS desktop (can make the web page more like a native app)
Among them, apple-touch-icon-precomposed has rounded corners/highlight modification when added to the desktop, apple-touch-icon only handles rounded corners, no Highlight modification
dns-prefetch is a new content of HTML5. It is mainly used for front-end optimization, reducing DNS requests and pre-resolving DNS. As you can see from the above example, it caches the domain name and automatically obtains it when the user clicks on the address of other pages. This controls the browser to resolve the domain name.
In addition, can set whether the current page requires DNS resolution. content="on" means parsing/content="off" means not parsing. Parsed by default.