上传到网络服务器后,Chrome 中未加载 Favicon
Favicon not loading in Chrome, after uploading to webserver
目前,在将相关文件和代码上传到网络服务器后,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 且证书有效。
欢迎任何想法。
尝试删除 cdn
之前的 /
或检查 URL 结构。
尝试将 BingMap input
移到正文中,因为目前它们正在强制将网站图标放入 <body>
,因此它们无法加载。移动后,图标显示如下:
目前,在将相关文件和代码上传到网络服务器后,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 且证书有效。
欢迎任何想法。
尝试删除 cdn
之前的 /
或检查 URL 结构。
尝试将 BingMap input
移到正文中,因为目前它们正在强制将网站图标放入 <body>
,因此它们无法加载。移动后,图标显示如下: