Display a custom icon when iphone"is added to the home screen
Test Resources Download: Https://github.com/dragon8github/mobile-boilerplate/tree/master/img/touch
<!DOCTYPE HTML><HTML> <Head> <MetaCharSet= "Utf-8"> <Metaname= "Viewport"content= "Width=device-width, initial-scale=1.0"> <!--ipad and ipad mini (with @2xdisplay) ios≥8 - <Linkrel= "apple-touch-icon-precomposed"Sizes= "180x180"href= "Img/touch/apple-touch-icon-180x180-precomposed.png"> <!--IPad (with @2xdisplay) ios≥7 - <Linkrel= "apple-touch-icon-precomposed"Sizes= "152x152"href= "Img/touch/apple-touch-icon-152x152-precomposed.png"> <!--IPad (with @2xdisplay) ios≤6 - <Linkrel= "apple-touch-icon-precomposed"Sizes= "144x144"href= "Img/touch/apple-touch-icon-144x144-precomposed.png"> <!--IPhone (with @2xand @3 display) ios≥7 - <Linkrel= "apple-touch-icon-precomposed"Sizes= "120x120"href= "Img/touch/apple-touch-icon-120x120-precomposed.png"> <!--IPhone (with @2xdisplay) ios≤6 - <Linkrel= "apple-touch-icon-precomposed"Sizes= "114x114"href= "Img/touch/apple-touch-icon-114x114-precomposed.png"> <!--ipad Mini and the First-and second-generation ipad (@1xdisplay) on Ios≥7 - <Linkrel= "apple-touch-icon-precomposed"Sizes= "76x76"href= "Img/touch/apple-touch-icon-76x76-precomposed.png"> <!--ipad Mini and the First-and second-generation ipad (@1xdisplay) on Ios≤6 - <Linkrel= "apple-touch-icon-precomposed"Sizes= "72x72"href= "Img/touch/apple-touch-icon-72x72-precomposed.png"> <!--Android Stock Browser and Non-retina iPhone and IPod Touch - <Linkrel= "apple-touch-icon-precomposed"href= "Img/touch/apple-touch-icon-57x57-precomposed.png"> <!--Fallback for everything else - <Linkrel= "shortcut icon"href= "Img/touch/apple-touch-icon.png"> <!--IOS Home Screen app full screen - <Metaname= "Apple-mobile-web-app-capable"content= "Yes"> <!--Android Home Screen app fullscreen - <Metaname= "Mobile-web-app-capable"content= "Yes">
<!--the time of the iOS, the battery, the provider, etc.-
<meta name= "Apple-mobile-web-app-status-bar-style" content= "Black"/>
</ Head > < Body > </ Body > </ HTML >
Effect Demo ("Add to Home Screen" is supported by Safari browser, not supported by the UC browser of the pit Daddy):
The custom ICO icon is displayed on the desktop
Due to the addition of <meta name= "apple-mobile-web-app-capable" content= "yes" >
So the desktop launched by the site is full screen (hide the browser's address bar and toolbars, loading status bar, etc.)
IOS launches web App with interface icon + Full Screen app + Add to home screen