Multiple “apple-touch-startup-image” resolutions for iOS web app (esp. for iPad)?

后端 未结 14 1521
执笔经年
执笔经年 2020-11-28 01:12

I\'ve written an HTML5-based iOS web application and all seems to be working well, but I\'m trying to polish it up with multiple startup screens. The iPhone/iPod touch works

14条回答
  •  甜味超标
    2020-11-28 01:54

    If you want to target the retina display I found a solution and blogged about it here: http://paulofierro.com/blog/2011/8/31/icons-and-splash-screens-for-ios-web-apps-retina-displays-also-welcome

    Basically the sizes property and media queries will not work. You have to inject the high-res startup image via JavaScript once your page is loaded. Hacky but works.

提交回复
热议问题