简体   繁体   English

将apple-touch-icon添加到我的应用程序(从图像文件)不起作用

[英]Add apple-touch-icon to my application (from image file) not working

I am working with SAP Hana Cloud trial version (SAP WEB IDE). 我正在使用SAP Hana Cloud试用版(SAP WEB IDE)。 I tried to add Home Screen feature to my application. 我试图将主屏幕功能添加到我的应用程序。 My project structure is: 我的项目结构是:

http://scn.sap.com/servlet/JiveServlet/showImage/621327/structure.png http://scn.sap.com/servlet/JiveServlet/showImage/621327/structure.png

In index.html file I added line like this: 在index.html文件中,我添加了如下代码:

<link rel="apple-touch-icon" sizes="57x57" href="images/apple-touch-icon-iphone.png"/>

Then I deploy my application, and when I try to add Home Screen on my iPhone 5s device (iOS version: 8), my image is not added. 然后部署我的应用程序,当我尝试在iPhone 5s设备(iOS版本:8)上添加主屏幕时,未添加我的图像。

Interesting is that, when I use image from internet (link to the image), then all works great - image is added to home screen: 有趣的是,当我使用互联网上的图像(链接到图像)时,一切都很好-图像已添加到主屏幕:

<link rel="apple-touch-icon" sizes="57x57" href="http://www.platinumpay.net/images/EP_employees.png">

Can you please help, what could be wrong? 您能帮忙吗,可能是什么问题? Image path or something in deffinition? 图像路径还是清晰的东西?

BR, Kristaps 克里斯塔普斯(BR)

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

相关问题 是否可以使用apple-touch-icon作为网站图标? - is using apple-touch-icon as favicon possible? 梳理“icon”和“apple-touch-icon”链接类型 - Combinging “icon” and “apple-touch-icon” link types 苹果触摸图标不起作用 - Apple touch icon not working 适用于iPhone 7的Apple Touch图标(主屏幕图标)吗? - Apple Touch Icon (Homescreen icon) for iPhone 7? 我的网站已因Apple-touch-icon.png的请求而关闭? - My Sites Have Been Shut Down for Apple-touch-icon.png requests? Web应用程序的苹果触摸图标/主屏幕图标单击事件 - apple touch icon/home screen icon click event for web app android,主屏幕上的Web应用程序图标,而不是常规图标,apple touche图标:apple-touch-icon-precomposed - android, web app icon on the home screen instead of generic icon, apple touche icon : apple-touch-icon-precomposed sencha-touch应用程序无法正常工作 - sencha-touch application not working 如何在我的CSS文件中为图标添加工具提示 - How to add a ToolTip for an icon inside my CSS file 验证错误“元素链接上属性 rel 的错误值 apple-touch-icon-precomposed:未注册关键字 apple-touch-icon-precomposed。” - Validation error “Bad value apple-touch-icon-precomposed for attribute rel on element link: Keyword apple-touch-icon-precomposed is not registered.”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM