WebApp Development Essentials Record

Source: Internet
Author: User

1. Apple-touch-startup-image

Add a page to your desktop home screen, if you have this tag

<meta name= "apple-mobile-web-app-capable" content= "yes" >

Click on the generated icon to enter app mode, at which point you can add a splash screen.

Start screen is a picture, different models, need to picture the size of different, organized as follows:

Models Resolution Pixel ratio Physical resolution Image resolution
Iphone4/iphone4s 320 * 480 2 640 * 960 640 * 920
Iphone5/iphone5s 320 * 568 2 640 * 1136 640 * 1096
Iphone6 375 * 667 2 750 * 1334 750 * 1294
iphone6+ (Portrait) 414 * 736 3 1242 * 2208 1242 * 2148
iphone6+ (Landscape) 736 * 414 3 2208 * 1242 2208 * 1182

The height of the picture is the physical pixel height minus the top system bar (20 * pixel ratio) px

The corresponding META tags are:

<!--iphone4, iphone4s-->
<link rel= "Apple-touch-startup-image" href= "/static/img/startup-640x920.png" media= "(device-width:320px) and ( device-height:480px) and (orientation:portrait) and (-webkit-device-pixel-ratio:2) "/>


<!--iphone5, iphone5s-->
<link rel= "Apple-touch-startup-image" href= "/static/img/startup-640x1096.png" media= "(device-width:320px) and ( device-height:568px) and (orientation:portrait) and (-webkit-device-pixel-ratio:2) "/>


<!--iphone6-->
<link rel= "Apple-touch-startup-image" href= "/static/img/startup-750x1294.png" media= "(device-width:375px) and ( DEVICE-HEIGHT:667PX) and (orientation:portrait) and (-webkit-device-pixel-ratio:2) "/>


<!--iphone6+ portrait-->
<link rel= "Apple-touch-startup-image" href= "/static/img/startup-1242x2148.png" media= "(device-width:414px) and ( DEVICE-HEIGHT:736PX) and (orientation:portrait) and (-webkit-device-pixel-ratio:3) "/>


<!--iphone6+ landscape-->
<link rel= "Apple-touch-startup-image" href= "/static/img/startup-2208x1182.png" media= "(device-width:414px) and ( DEVICE-HEIGHT:736PX) and (Orientation:landscape) and (-webkit-device-pixel-ratio:3) "/>

1) What image formats can I support?

2) <meta name= "apple-mobile-web-app-capable" content= "yes" > must have?

  

WebApp Development Essentials Record

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.