如題,代碼在火狐 Google瀏覽器下都沒有問題,只是在IE下沒有反應(yīng) html 代碼<div class="cjy-top"><span class="cjy-tit fn-left"></span><span class="cjy-tab fn-left"><a id="class1" href="javascript:void(0)" class="cur">1</a><a id="class2" href="javascript:void(0)" href="">2</a><a id="class3" href="javascript:void(0)" href="">3</a><a id="class4" href="javascript:void(0)" href="">4</a><a id="class5" href="javascript:void(0)" href="">5</a><a id="class6" href="javascript:void(0)" href="">6</a><a id="class7" href="javascript:void(0)" href="">7</a></span>js 代碼<script type="text/javascript">$(function(){$('.cjy-tab a').mouseover(function(){var Id=$(this).attr("id");$('.cjy-tab a').each(function(){if(Id==$(this).attr("id")){$("#"+Id).removeClass("").addClass("cur");$("#lineList"+Id.replace("class","")).show();}else{$("#"+$(this).attr("id")).removeClass("cur").addClass("");$("#lineList"+$(this).attr("id").replace("class","")).hide();}}) })$('.gny-tab a').mouseover(function(){var Id=$(this).attr("id");$('.gny-tab a').each(function(){if(Id==$(this).attr("id")){$("#"+Id).removeClass("").addClass("cur");$("#lineList"+Id.replace("class","")).show();}else{$("#"+$(this).attr("id")).removeClass("cur").addClass("");$("#lineList"+$(this).attr("id").replace("class","")).hide();}}) })})//gny-tab</script>
求大神解釋,為什么jQuery .mouseover()方法,會在IE下無效?
繁星點(diǎn)點(diǎn)滴滴
2021-06-07 10:06:25