在這裏你可以看到小提琴:http://jsfiddle.net/WdZeC/文字上的圖片,在畫面的中心
<div class="text_align_center" style="text-align: center;">
<div style="position: relative;">
<img width="27" height="28" src="http://www.kavoir.com/img/text-over-image.jpg">
<div style="position: absolute; left: 0; top: 0; width:27px; background-color: red;">1</div>
</div>
<div style="position: relative;">
<img width="27" height="28" src="http://www.kavoir.com/img/text-over-image.jpg">
<div style="position: absolute; left: 0; top: 0; width:27px; background-color: red;">1</div>
</div>
<div style="position: relative;">
<img width="27" height="28" src="http://www.kavoir.com/img/text-over-image.jpg">
<div style="position: absolute; left: 0; top: 0; width:27px; background-color: red;">1</div>
</div>
<div style="position: relative;">
<img width="27" height="28" src="http://www.kavoir.com/img/text-over-image.jpg">
<div style="position: absolute; left: 0; top: 0; width:27px; background-color: red;">1</div>
</div>
<img width="27" height="28" src="http://www.kavoir.com/img/text-over-image.jpg"><img width="27" height="28" src="http://www.kavoir.com/img/text-over-image.jpg"><img width="27" height="28" src="http://www.kavoir.com/img/text-over-image.jpg"><img width="27" height="28" src="http://www.kavoir.com/img/text-over-image.jpg"><img width="27" height="28" src="http://www.kavoir.com/img/text-over-image.jpg"><img width="27" height="28" src="http://www.kavoir.com/img/text-over-image.jpg"><div class="left">
</div>
我要做到以下幾點:
IMG IMG IMG IMG IMG IMG IMG
並寫入到IMG,最好在他們的中心。一切都是文字對齊:中心;但看起來文本仍分配到左
設置的圖像作爲文本的背景。設置文本的寬度和添加浮動 –
可悲的是,它必須是「可點擊」 –