简体   繁体   English

Favicon没有出现在浏览器选项卡中

[英]Favicon does not appear in browser tab

sorry for a bit newbie question. 抱歉,有一个新手问题。 (New to JS & HTML ) JS & HTML

I created a small website ( link ) and I added a favicon. 我创建了一个小型网站( link ),并添加了一个网站图标。 Problem is, for some reason it does not show up when I enter the website. 问题是,由于某种原因,当我进入网站时它没有显示。 The html tag which I added is: 我添加的html标签是:

<link rel='icon' href='image/favicon.ico' type='image/x-icon'>

The file image/favicon.ico exists. 文件image/favicon.ico存在。

Tried to search for a solution via this forum, but didn't find any. 试图通过此论坛搜索解决方案,但未找到任何解决方案。

Maybe the HTML tag isn't right? 也许HTML标记不正确? Or maybe its the problem with the domain? 还是域的问题? if so, how to handle this issue? 如果可以,该如何处理?

Try using <link rel="shortcut icon" href="..."> 尝试使用<link rel="shortcut icon" href="...">

Make sure you put it in the <head></head> section underneath the <title></title> . 确保将其放在<title></title>下方的<title></title> <head></head>部分中。

Hopefully that helps. 希望有帮助。

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

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