如果网址以https://开头,则不会显示Favicon

编程入门 行业动态 更新时间:2024-10-26 07:37:36
本文介绍了如果网址以开头,则不会显示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

本文发布于:2023-11-16 18:24:15,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1606714.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:开头   网址   https   Favicon

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!