【问题标题】:Why did my favicon stop working when the code hasn't been changed?为什么我的网站图标在代码未更改时停止工作?
【发布时间】:2016-01-05 00:50:41
【问题描述】:

几周前,我注意到我的网站停止加载网站图标:http://makingspidersense.com/Schubert/

我没有更改该部分的代码,并且 png 文件仍然存在于服务器上。似乎所有标签都已正确关闭。这段代码曾经可以工作,并且对于我的其他网站仍然可以正常工作。那么是什么导致它停止加载,我该如何解决呢?

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<link href="css/schubert.css" rel="stylesheet" type="text/css">
<link href='http://fonts.googleapis.com/css?family=Yanone+Kaffeesatz:400,700' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Signika' rel='stylesheet' type='text/css'>
<meta name="description" content="The official website for Schubert's Hartford Theatre in Hartford, WI. Purchase your tickets online, find showtimes, movie trailers, shows that are coming soon, discount prices and more!" />
<meta name="keywords" content="Schubert, Theatres, Cinemas, tickets, showtimes, movies, Hartford, WI" />
<meta property="fb:admins" content="ben.moran.28" />
<meta name="viewport" content="width=1075px"/>
<title>Schubert's Hartford Theatre in WI - Purchase tickets, find showtimes and movie info</title>
<script type="text/javascript" src="scripts/jquery-1.6.4.min.js"></script>
<script type="text/javascript" src="scripts/coin-slider.js"></script>
<link rel="icon" type="image/png" href="img/favicon.png">
</head>

【问题讨论】:

  • 我过去曾遇到过这个问题,但这似乎是由于我的浏览器保存了不再可用的旧版本的网站图标。尝试删除您的 cookie 并重试:D
  • 清除了我的 cookie 和缓存仍然有效。还在另一台计算机和多个浏览器(chrome 和 firefox)上尝试过。你能看到网站图标吗?
  • 很抱歉也看不到 :( 但是很酷的网站!:D
  • 好奇如果你把它改成:&lt;link rel="shortcut icon" href="img/favicon.png"&gt;
  • @MikeChristensen 也试过了,但仍然没有出现。 ://

标签: icons loading favicon bookmarks favorite


【解决方案1】:

当我访问你的网站时,我会把它当作你的头像:

<head>
  <title>Schubert Theatres </title>

</head>

我以前没有使用过框架集,您网站的其余部分似乎是通过某种类型的框架集显示的,但我建议您尝试将图标放在页面的实际头部。那会有所帮助。

【讨论】:

  • 这就是显示的内容,因为我提供了一个指向实际网站的域 (schuberttheatres.com)。实际的网址是makingspidersense.com/Schubert,我在帖子中更新了。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2021-07-30
  • 2019-12-17
  • 2020-03-22
  • 2015-11-16
  • 2018-01-30
  • 2011-04-06
  • 1970-01-01
相关资源
最近更新 更多