The Safri browser in iOS can add a webpage to the desktop and run it as a standalone app.
Of course, here we don't discuss how to do a webapp, which requires HTML5 knowledge and development experience.
Here we only talk about the details of WebApp after adding the desktop to the boot.
Full Screen display:
<meta name= "apple-mobile-web-app-capable" content= "yes"/>
Color of the system top bar (black and white):
<meta name= "Apple-mobile-app-status-bar-style" content= "white"/><meta name= " Apple-mobile-app-status-bar-style "content=" Black "/>
The desktop icon (if not set, the icon displays the page's:
<link rel= "Apple-touch-icon" href= "Icon.png"/>
However, iOS will give this icon with a high-gloss, if you want the icon not to be high-gloss, you can:
<link rel= "apple-touch-icon-precomposed" href= "Icon.png"/>
If you want to match different icons for different devices, you can add the Size property:
<link rel= "Apple-touch-icon" size= "72x72" href= "icon-ipad.png"/><link rel= "Apple-touch-icon" size= "114x114 "href=" Icon-iphone4.png "/>
In the process of starting the program, you need to specify the splash screen, otherwise, the white screen or is not very pleasant.
iOS has the ipad and iphone/ipod touch.
ipad Start screen is divided between the screen, the size of the screen must be 1024x768, 768*1024.
While the iphone and ipod touch are vertical, they have retina and non-retina screens, and the size of the splash screen is not the size of the screen, but the screen width * (screen height-20). That is, the size of the non-retina size of the 320*460,retina screen is 640*920.
The introduction of the splash screen is supported by media queries.
As a result, you can use media query to introduce different graphs to the ipad's screen:
<link rel= "Apple-touch-start-image" href= "landscape.png" madia= "screen and (min-device-width:481px) and ( MAX-DEVICE-WIDTH:1024PX) and (Orientation:landscape) "/><link rel=" Apple-touch-start-image "href=" portait.png "Madia=" screen and (min-device-width:481px) and (max-device-width:1024px) and (orientation:portait) "/>
But the media query does not make the retina screen, so through JS to hack:
First, introduce the 320*460 image to the normal resolution:
<link rel= "Apple-touch-start-image" href= "start.png" media= "screen and (max-device-weidth:320px)"/>
Retina Screen JS:
if (App.device.type = = = "IPhone" | | app.device.type = = = "IPod") && app.device.version >= ' 5 ' && Amp Window.devicepixelratio >= 2) {$ (' head '). Append ($ (' <link rel= ' apple-touch-startup-image "href=" Start-640-920.png "/>");}
WebApp Add to iOS desktop