改为

<div style="background:url('img.jpg') no-repeat;width:100px;height:50px">添加文字</div>

================================================================

2.一种是:加<span>标签,设置CSS样式,你加入的代码是:

<div style="position: relative; width: 170px; height: 89px;"><img src="图片地址" width="170" height="89" alt=""><span style="position: absolute; top: 0; left: 0;">添加文字...添加文字...添加文字...</span></div>



优质网站模板

  • 1
  • 2
  • 3