【发布时间】:2015-06-22 12:49:42
【问题描述】:
我的网站有一个奇怪的情况,每当它出现在 Google 搜索上时,尽管不是 <title> 标记的一部分,但其中一张图片的替代文本也会显示。
在我的网站 (sparen.github.io) 上,我有以下标题:
<head>
<meta content="text/html; charset=utf-8" http-equiv="content-type">
<title>Andrew Fan's Code Dump: The Embodiment of Code and Hacks (AFCDTECH)</title>
<link rel="stylesheet" type="text/css" href="blah.css">
<meta content="Andrew Fan's Code Dump: The Embodiment of Code and Hacks (AFCDTECH)"
name="description">
<meta name="keywords" content="Sparen, Touhou, Danmakufu, ph3, Tutorial, Script, Project">
<meta name="viewport" content="initial-scale=1">
<script>
<!-- Removed Google Analytics stuff for purposes of StackOverflow Question-->
</script>
</head>
<body id="mhome">
<div class="yui-t1" id="top">
<center><a href="http://sparen.github.io"><img alt=""Site Logo"" src="images/logo.png" style="width:90%"></a></center>
但是,在 Google 搜索中,标题显示如下:
***这实际上是一个不同的页面,但我网站上的所有页面似乎都有相同的问题,并且都具有相同的标题结构。
我不知道为什么它有那个额外的“网站徽标”,它只作为图片替代文本的一部分出现在我的横幅中(甚至不在头部,而是在页面的正文中)。
在过去的几个月里它并没有消失,很高兴知道在我最初构建我的网站时是否有什么我从未考虑过的事情,或者 BlueGriffon 在我离开它之前是否做过什么事情。
【问题讨论】:
标签: html google-search