有没有办法说对 iPad 使用 1 个图标,对 iPhone 使用另一个图标?我所知道的唯一最喜欢的图标代码是 <link rel="apple-touch-icon" href="icon.jpg">
但这只是通用的苹果,并没有指定设备。我想既然较新的 iPhone 和 iPad 都配备了视网膜显示屏,我也需要一个 diff webapp 图标,对吗??
最佳答案
当然可以,来自优秀的Icon Handbook :
<!-- For iPhone 4 Retina display: -->
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="/apple-touch-icon-114x114-precomposed.png">
<!-- For iPad: -->
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="/apple-touch-icon-72x72-precomposed.png">
<!-- For iPhone: -->
<link rel="apple-touch-icon-precomposed" href="/apple-touch-icon-57x57-precomposed.png">
关于iphone - 区分 iPad 和 iPhone 的网络图标,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11237019/