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

王朝站长·作者佚名  2011-12-16  
宽屏版  字体: 小 | 中 | 大 | 超大  

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

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
© 2005- 王朝网络 版权所有