2014-11-13 2 views
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>&nbsp;</td> 
      <td>&nbsp;</td> 
      <td>&nbsp;</td> 
      <td>&nbsp;</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; 
} 
+0

'name = "name"[]'? 뭐 ? 또한, 소문자'id '를 사용하는 것이 좋습니다 – Raptor

+0

@Raptor name = "name"[] = name = "real_name"[] – Klapsius

+0

'name = "name []"'을 의미합니까? – Raptor

답변

0

는 가지 말이에 대한 수도 있지만 내가 사용 된 해결 방법은 이미이 문제를 해결했을 수도

<meta http-equiv="x-ua-compatible" content="IE=10"> 

이지만, 희망 그것을 위해 다른 방법을 찾았습니다.

관련 문제