当前位置: 主页 > 网页制作 > CSS > 搜索引擎读取CSS图片文字

搜索引擎读取CSS图片文字

时间:2009-12-14来源:互联网 点击:

这里介绍的是另一种可以让搜索引擎读取图片文字的做法,是通过CSS完成的。
在你的HTML文件里:

以下是引用片段:
<div id="myimage">
<span>
My Company Name - My Unique Selling Proposition Why You Should Get My Service
</span>
</div>

在你的CSS文件里:

以下是引用片段:
#myimage {
background: url(”../images/path/myimage.jpg”);
height: 100px;
width: 760px;
}
#myimage span {
display: none;
}


请注意不要过分优化,切莫如下作法,你会GOT BANNED.

以下是引用片段:
<div id="myimage">
<span>
My Company Name - My Unique Selling Proposition Why You Should Get My Service - My company does this, this, and that. We also offer this and that, we are the best in doing all these things. product 1, product 2, product 3, service 1, service 2, service 3.
<span>
</div>

站长资讯网
. TAG: 搜索引擎 CSS
推荐内容最近更新人气排行
关于我们 | 友情链接 | 网址推荐 | 常用资讯 | 网站地图 | RSS | 留言