更改收藏夹图标不起作用 [英] Change favicon doesn't work

查看:59
本文介绍了更改收藏夹图标不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的网站根目录上有网站图标.
我将此代码添加到母版页.

I have favicon on my website on the root.
I add this code to master page.

<link rel="SHORTCUTxx ICON" href="favicon.ico" type="image/x-icon" />
<link href="favicon.ico" rel="ICON" type="image/x-icon" />
<link href="favicon.ico" rel="BOOKMARK ICON" type="image/x-icon" />


我更改了收藏夹文件,但它仍显示旧图标.是什么问题?


I change the favicon file, but it still shows the old icon. What is the problem?

推荐答案

旧图标仍位于图标缓存中.尝试创建桌面快捷方式或将该页面添加为收藏.这将迫使Internet Explorer下载图标并进行存储.另外,请尝试按Ctrl + F5重新加载"页面. 重新加载"会强制完整下载所有页面项目.
The old icon is still in the icon-cache. Try creating a desktop shortcut or add the page as a favorite. This forces Internet Explorer to download the favicon and store it. Also, try Ctrl+F5 to "reload" the page. A "reload" forces a complete download of all page items.


清除提示并重新打开站点Again
Clear The Cach & Reopen The Site AGain


我已经给了您答案在这里 http://www.codeproject.com/Messages/4011255/Change-favicon- nott-work.aspx [ ^ ].
您将上述代码放在哪一部分?
图片的位置在哪里?

将链接标签放在Head标签内
I have already given you the answer over here http://www.codeproject.com/Messages/4011255/Change-favicon-doesnt-work.aspx[^].
In which section are you placing the above code ?
Where is the location of your image ?

Put the link tag inside the Head Tag
<link rel="SHORTCUTxx ICON" href="http://site/favicon.ico" type="image/x-icon" />
 <link href="http://site/favicon.ico" rel="ICON" type="image/x-icon" />
 <link href="http://site/favicon.ico" rel="BOOKMARK ICON" type="image/x-icon" />


并确保图标大小为16 * 16.


And make sure, icon size is 16*16.


这篇关于更改收藏夹图标不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆