js控制点击事件 字体加粗 两台电脑用IE6的没问题,
但是另两台IE8的使用,为什么就加粗后 不变回来了呢?<script>
$(document).ready(function(){
$(".imatm").find("a").click( function () {
$(".imatm").attr("style","width: 135px;");
$(".imatm").find("a").each(function(i){
$(this).attr("style","");
});
$(this).attr("style","font-weight:bolder;");
});
});
</script>
<li class="imatm" style="width: 120px;">
<a style="" href="aaaa.jsp" target="frmright">aaa</a>
</li>
但是另两台IE8的使用,为什么就加粗后 不变回来了呢?<script>
$(document).ready(function(){
$(".imatm").find("a").click( function () {
$(".imatm").attr("style","width: 135px;");
$(".imatm").find("a").each(function(i){
$(this).attr("style","");
});
$(this).attr("style","font-weight:bolder;");
});
});
</script>
<li class="imatm" style="width: 120px;">
<a style="" href="aaaa.jsp" target="frmright">aaa</a>
</li>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货