[英]Why can't I add a web clip icon to my webapp in dashcode. I've tried everything?
I've tried running this code from 2 different operating systems on a simulator, an iphone and an ipad and it won't show up. 我尝试在模拟器,iphone和ipad的2个不同的操作系统上运行此代码,但不会显示。 The code is listed in the dashcode tutorial, but I can't get it to work.
该代码在dashcode教程中列出,但我无法使其正常工作。 Please help!
请帮忙!
<link rel"apple-touch-icon" href="Images/WebClipIcon.png">
也许只是等号在rel
之后消失了?
<link rel="apple-touch-icon" href="Images/WebClipIcon.png">
Well, for a start you need rel="apple-touch-icon"
, not rel"apple-touch-icon"
. 好吧,一开始您需要
rel="apple-touch-icon"
,而不是rel"apple-touch-icon"
。 And I would suggest using a path from the root of your server, for example "/Images/WebClipIcon.png". 我建议您使用服务器根目录下的路径,例如“ /Images/WebClipIcon.png”。 And make sure your image actually exists at the given path, ie if your site is
http://foo.bar
, can you definitely visit http://foo.bar/Images/WebClipIcon.png
in a browser and see the icon? 并确保您的图像确实存在于给定的路径中,即,如果您的站点是
http://foo.bar
,您是否可以肯定在浏览器中访问http://foo.bar/Images/WebClipIcon.png
并看到该图标?
It turns out web clip icons do not work properly unless there is a safari element in dashcode. 事实证明,除非短划线中包含safari元素,否则Web剪辑图标无法正常工作。 I was working solely with the mobile safari element.
我只使用移动Safari元素。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.