1.常用的方式是:將一張圖片設(shè)置為背景,然后在里面加文字,你加入的圖片代碼是:
<img src=”img.jpg” width=’100px” height=”50px”>
改為
<div style=”background:url(‘img.jpg’) no-repeat;width:100px;height:50px”>添加文字</div>
2.一種是:加<span>標(biāo)簽,設(shè)置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>
新聞熱點(diǎn)
疑難解答
圖片精選