类似以下代码,点击图片不能选中checkbox
<input id="dw_1" name="shape[]" value="Round" type="checkbox" >
<label for="dw_1">Round<br><img src="images/shape/Round.gif" ></label>
网上看的办法:在img标签里加入一个 disabled ,如下:
<input id="dw_1" name="shape[]" value="Round" type="checkbox" >
<label for="dw_1">Round<br><img src="images/shape/Round.gif" disabled ></label>
此法测试有效,还有其他方法未测试。