上传到网络服务器后,Favicon无法在Chrome中加载

时间:2015-05-20 13:35:14

标签: html google-chrome favicon

目前,在将相关文件和代码上传到网络服务器后,我遇到了未在Chrome上加载的图标的问题。

我必须实现的代码如下:

<link rel="apple-touch-icon" sizes="57x57" href="/cdn/images/favicons/apple-touch-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="/cdn/images/favicons/apple-touch-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="/cdn/images/favicons/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="/cdn/images/favicons/apple-touch-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="/cdn/images/favicons/apple-touch-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="/cdn/images/favicons/apple-touch-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="/cdn/images/favicons/apple-touch-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="/cdn/images/favicons/apple-touch-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="/cdn/images/favicons/apple-touch-icon-180x180.png">
<link rel="icon" type="image/png" href="/cdn/images/favicons/favicon-32x32.png" sizes="32x32">
<link rel="icon" type="image/png" href="/cdn/images/favicons/favicon-194x194.png" sizes="194x194">
<link rel="icon" type="image/png" href="/cdn/images/favicons/favicon-96x96.png" sizes="96x96">
<link rel="icon" type="image/png" href="/cdn/images/favicons/android-chrome-192x192.png" sizes="192x192">
<link rel="icon" type="image/png" href="/cdn/images/favicons/favicon-16x16.png" sizes="16x16">
<link rel="manifest" href="/cdn/images/favicons/manifest.json">
<link rel="shortcut icon" href="/cdn/images/favicons/favicon.ico">

http://realfavicongenerator.net/

为我生成的

有谁知道为什么这不会显示?

我已经查看了其他人遇到的问题,但仍然对仅仅在此浏览器中加载的图标感到困惑。

网站在HTTPS上运行,证书有效。

欢迎任何想法。

2 个答案:

答案 0 :(得分:2)

尝试将BingMap input移动到正文,因为它们正在强制将favicon强加到<body>,因此它们不会加载。移动后,favicon显示如下:

enter image description here

答案 1 :(得分:1)

尝试在ds.Tables[0].Rows[i]之前删除/或检查网址结构。