如果网址以https://开头,则不会显示Favicon [英] Favicon is not showing if the URL starts with https://

查看:67
本文介绍了如果网址以https://开头,则不会显示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以http://开头,我可以在所有浏览器中查看该图标.当地址以https://开头时,收藏夹图标不会在IE浏览器中显示.我有什么需要做的吗?我错过了任何重要的东西吗?

The problem is, I can view the favicon in all browsers if the url starts with http://. When the address starts with https://, 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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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