1
라디오 버튼으로 사진을 사용하고 있습니다. 하지만 문제는 내가 IE9에서 잘 작동하지만 IE 11에서는 작동하지 않는 경우입니다. 내 jQuery 스크립트에서 나는 모든 라디오 버튼을 숨기고 액션에 대해서는 라벨을 사용한다. IE9에서는 (아무 데나) 그림을 클릭 할 수 있으며 괜찮습니다. 하지만 IE11에서는 왼쪽 하단 모퉁이에서만 클릭해야합니다.라디오 버튼의 사진이 IE11에서 작동하지 않습니다.
<div id="div_name">
<table class="tables">
<tr>
<td><input type="radio" name="name"[] id="H1" value="H1" class="me_radio"><label for="H1" class="radio_label"><img src="icons/1.gif"><br>One</label></td>
<td><input type="radio" name="name"[] id="H2" value="H2" class="me_radio"><label for="H2" class="radio_label"><img src="icons/2.gif"><br>Two </label></td>
<td><input type="radio" name="name"[] id="H3" value="H3" class="me_radio"><label for="H3" class="radio_label"><img src="icons/3.gif"><br>Three</label></td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
</div>
$('#me_radio label').click(function() {
$('#other_div label').removeClass('selected');
.
.// remove classes from another
.
$(this).addClass('selected').siblings().removeClass('selected');
});
그리고 CSS
.selected {
background-color: #ccc;
}
'name = "name"[]'? 뭐 ? 또한, 소문자'id '를 사용하는 것이 좋습니다 – Raptor
@Raptor name = "name"[] = name = "real_name"[] – Klapsius
'name = "name []"'을 의미합니까? – Raptor