Format-detection
<meta name= "format-detection" content= "Telephone=no" >
<meta name= "format-detection" content= "Email=no"/>
The iphone will automatically add your text to the link style, and clicking on this number will automatically dial!
Telephone=no the number identified as the phone number in the page
Telephone=yes turned on the number into a dial-up link, the default is the case is open! Status-bar-style
<meta name= "Apple-mobile-web-app-status-bar-style" content= "Default"/>
<meta name= "Apple-mobile-web-app-status-bar-style" content= "Black"/>
<meta name= "Apple-mobile-web-app-status-bar-style" content= "Black-translucent"/>
- Control status bar display style default (white) Black (black) black-translucent (gray translucent)
Link Label Apple-touch-icon
If apple-mobile-web-app-capable
set to True yes
, you can add a Web site to the home screen using the Add to Home button on safari iphone,ipad,itouch.
By setting the appropriate apple-touch-icon
label, the icon added to the main screen will use the image we specified.
Here are the different devices for the ox, choose an optimal icon. The default iphone size is 60px,ipad for the 76px,retina screen multiplied by twice times.
<link rel="apple-touch-icon" href="touch-icon-iphone.png"><link rel="apple-touch-icon" sizes="76x76" href="touch-icon-ipad.png"><link rel="apple-touch-icon" sizes="120x120" href="touch-icon-iphone-retina.png"><link rel="apple-touch-icon" sizes="152x152" href="touch-icon-ipad-retina.png">
iOS7 previously the system will add special effects (fillets and highlights) to the icon, if you do not want the system to add effects, you can use apple-touch-icon-precomposed.png
insteadapple-touch-icon.png
The icons use the following priority levels:
- If you do not have an icon that matches the recommended size of the device, it will take precedence over the recommended size but closest to the recommended size.
- If there is no icon larger than the recommended size, the icon closest to the recommended size is preferred.
- If more than one icon fits the recommended size, the icon that contains the keyword precomposed will be selected first.
If you do not specify an icon in the zone with the link label, apple-touch-icon
the PNG icon prefixed with the Web site root is automatically searched.
Note: iOS7 no longer adds effects to icon, iOS7 previously added effects to icon unless the icon has a keyword -precomposed.png
suffix. Devicepixelratio
Window.devicepixelratio is the ratio of physical pixels and device independent pixels (device-independent pixels (dips)) on the device.
The formula means: Window.devicepixelratio = physical pixels/Dips