我有这样的事情:
<div class="controls">
<label class="checkbox inline">
<input type="checkbox" value="Boardroom" name="Form[257][]"> Boardroom</label>
<label class="checkbox inline">
<input type="checkbox" value="Theatre" name="Form[257][]"> Theatre</label>
<label class="checkbox inline">
<input type="checkbox" value="School" name="Form[257][]"> School</label>
<label class="checkbox inline">
<input type="checkbox" value="U-shape" name="Form[257][]"> U-shape</label>
<label class="checkbox inline">
<input type="checkbox" value="Coctail" name="Form[257][]"> Coctail</label>
<label class="checkbox inline">
<input type="checkbox" value="Banquet" name="Form[257][]"> Banquet</label>
</div>
我想添加图像,使它变成这样:
<div class="controls">
<label class="checkbox inline">
<input type="checkbox" value="Boardroom" name="Form[257][]">
<img src='1.png'> Boardroom</label>
<label class="checkbox inline">
<input type="checkbox" value="Theatre" name="Form[257][]">
<img src='2.png'> Theatre</label>
<label class="checkbox inline">
<input type="checkbox" value="School" name="Form[257][]">
<img src='3.png'> School</label>
<label class="checkbox inline">
<input type="checkbox" value="U-shape" name="Form[257][]">
<img src='4.png'> U-shape</label>
<label class="checkbox inline">
<input type="checkbox" value="Coctail" name="Form[257][]">
<img src='5.png'> Coctail</label>
<label class="checkbox inline">
<input type="checkbox" value="Banquet" name="Form[257][]">
<img src='6.png'> Banquet</label>
</div>
基本上,我需要为每个标签添加不同的图像。有人知道该怎么做吗?提前感谢您的回复。