书签或收藏夹快捷方式图标 [英] Bookmark or favorites shortcut icon
本文介绍了书签或收藏夹快捷方式图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已将下面的链接放在网站的部分。
我在Server.MapPath(〜/)中放置了ShortcutIcon.png。我仍然没有得到书签或收藏夹中的图标。是否还有其他动态方法可以完成这项工作?
我尝试了什么:
添加到Default.aspx。将png照片放在根目录中仍然没有图标。
解决方案
尝试使用.ico文件。您的HTML中还需要一个标记:
< link rel = 快捷图标 href = / path / favicon.ico >
阅读本文以获取更多信息:
html - / favicon.icovs< link rel =快捷图标/> - 堆栈溢出 [ ^ ]
I have placed the link below in the portion of the website.
I placed ShortcutIcon.png" in the Server.MapPath("~/"). I still do not get the Icon in the Bookmarks or Favorites png. Is there any other dynamic way to get this done?
What I have tried:
Added to Default.aspx . Put the png photo in root directory still no Icon.
解决方案
Try using an .ico file. You also need a tag in your HTML:
<link rel="shortcut icon" href="/path/favicon.ico">
Read this for more info:
html - "/favicon.ico" vs <link rel="shortcut icon" /> - Stack Overflow[^]
这篇关于书签或收藏夹快捷方式图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文