简体   繁体   English

为什么不能以短代码将Web Clip图标添加到我的Web应用程序中。 我已经尝试了一切?

[英]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.

相关问题 为什么我的 javascript 不能重定向以下代码,我尝试了多种解决方案,我在 StackOverFlow 中找到了 - Why can't my javascript redirect the following code, I've tried multiple solution that i found in StackOverFlow 如何添加要加载的Dashcode部分的库 - How can I add my library to be loaded Dashcode parts 在dashcode中更改后退按钮上的文本。 我在哪里放这个代码? - Changing text on back button in dashcode. Where do I put this code? 我已经尝试了createTextNode的每个换行符,但是我不能 - I've tried every line break for createTextNode but I can't make one 我试过在 JavaScript 中设置我的 Canvas 但它不起作用 - I've tried setting up my Canvas in JavaScript and it isn't working 无法将vimeo视频与fancybox配合使用-我觉得我已经尝试了所有方法 - Unable to get a vimeo video to work with fancybox— I feel like I've tried everything 无法计算表格行的总和我从互联网上尝试了很多方法但没有 - Can't calculate the sum of table rows I've tried many ways from the internet but nothing 我尝试了一些 ajax 请求,但它不起作用 - I've tried to some the ajax request but it won't work Google Maps API:为什么不能使用相对图标路径设置标记的图标? - Google maps API: Why can't I set the icon of my markers by using relative icon paths? 我无法对数组中的数字进行排序(尝试了此处编写的所有内容,stil无法正常工作) - I can't sort numbers in an array (tried everything that was written here, stil doesnt work)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM