简体   繁体   English

Apple iPhone / iPodTouch Web Clip图标大小

[英]Apple iPhone/iPodTouch Web Clip Icon Sizes

On Apple iPhones and iPod Touches, you specify a link to an icon file like so: 在Apple iPhone和iPod Touches上,您可以指定图标文件的链接,如下所示:

<link rel="apple-touch-icon" href="/apple-touch-icon.png">

...but on this page , it recommends that you specify two different sizes of icon, one for iPhone < 4 and another for iPhone 4. ...但是在此页面上 ,它建议您指定两种不同大小的图标,一个用于iPhone <4,另一个用于iPhone 4。

There is no documentation I can find that shows how to specify the two separate icons. 我找不到可以显示如何指定两个单独图标的文档。 Can anyone help? 有人可以帮忙吗?

There are plenty of documentation about this on Google. Google上有大量有关此内容的文档。

Just use: 只需使用:

<!-- **normal** (iPhone/iPod **non retina** display) -->
<link rel="apple-touch-icon" href="apple-touch-icon.png"/>

<!-- **normal** (iPhone/iPod **retina** display) -->
<link rel="apple-touch-icon" href="apple-touch-icon-72.png" sizes="72x72"/>

<!-- and **iPad** version -->
<link rel="apple-touch-icon" href="apple-touch-icon-114.png" sizes="114x114"/>

As an additional info , you can have the icon without the gloss effect if you use apple-touch-icon-precomposed instead of apple-touch-icon . 作为附加信息 ,如果您使用apple-touch-icon-precomposed而不是apple-touch-icon则可以使用没有光泽效果apple-touch-icon

and there are several tags you can use in order to have all features of Safari Mobile like splash screen, etc 并且您可以使用多个标签,以便拥有Safari Mobile的所有功能,如启动画面等

also, give this Mobile Tuts article a read and you will know almost everything you need to have a brilliant web app 另外,请阅读移动Tuts文章 ,您将了解拥有一个出色的Web应用程序所需的几乎所有内容

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM