本文介绍了如果网址以开头,则不会显示Favicon的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正遇到favicon.ico的一个问题.这是我的链接相关代码,该代码已包含在标头部分中.
I am facing one issue with favicon.ico. Here is my link rel code which has been included in header portion.
< link rel =快捷方式图标" type ="image/x-icon" href ="favicon.ico"/>
问题是,如果URL以开头,我可以在所有浏览器中查看该图标.当地址以开头时,收藏夹图标不会在IE浏览器中显示.我有什么需要做的吗?我错过了任何重要的东西吗?
The problem is, I can view the favicon in all browsers if the url starts with . When the address starts with , the favicon is not showing in IE browser. Is there anything that I need to do? Did I miss anything important to include?
推荐答案我遇到了同样的问题,并通过将以下行放在html文件的开头部分来解决了这个问题:
I had the same problem and fixed it by putting the following line in the head section of my html file:
<link rel="shortcut icon" href="">更多推荐
如果网址以https://开头,则不会显示Favicon
发布评论