当前位置:首页 >  站长 >  搜索优化 >  正文

搜索引擎优化-如何用CSS图片做背景

 2007-02-17 12:45  来源:   我来投稿 撤稿纠错

  一键部署OpenClaw

这里介绍的是另一种可以让搜索引擎读取图片文字的做法,是通过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>

申请创业报道,分享创业好点子。点击此处,共同探讨创业新机遇!

相关文章

热门排行

信息推荐