简体   繁体   English

无法在浏览器标签上删除favicon

[英]Cannot remove favicon on browser tab

I'm using: 我正在使用:

<link rel="shortcut icon" href="../Images/favicon.ico" />

to add a small icon to the browser tab, but now I cannot remove it from the browser. 向浏览器选项卡添加一个小图标,但现在我无法从浏览器中删除它。 I removed it from the head section but it's not working. 我从head删除它但它不起作用。 I also cleared the cache, cookies and sessions but still the same. 我也清除了缓存,cookie和会话但仍然相同。 The .ico icon is still in the browser tab. .ico图标仍在浏览器选项卡中。

By default, your browser will use the favicon in the same folder with your html file, so removing your link tag will do nothing. 默认情况下,您的浏览器将在与html文件相同的文件夹中使用favicon,因此删除链接标记将不执行任何操作。 You need to move the favicon elsewhere or delete it. 您需要将favicon移动到其他地方或删除它。 Then, if it stills shows up, clear your cache and go to the icon to see the new one. 然后,如果它仍然显示,请清除缓存并转到图标以查看新缓存。

This is common problem and we need follow 3 steps to remove .ico from browser tab. 这是常见问题,我们需要按照3个步骤从浏览器标签中删除.ico

  1. Remove reference from head tag where added the icon. head标记中删除引用,添加图标。

  2. Delete or move somewhere else from current folder from where was added. 从添加的位置删除或移动当前文件夹中的其他位置。

  3. Clear the browser cache, cookie etc. 清除浏览器缓存,cookie等。

  4. Open the same link in new tab or new browser's 在新标签页或新浏览器中打开相同的链接

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM