我需要设置一个类似于以下的 if 语句:
如果divID1
元素style="display:block"
则divCLASS1
添加 CSS style="margin-right:0px"
。
<script type="text/javascript">
<!--
if ($('#w2btoTop').element.style('display') == 'block')
$(".livehelp").css('margin-right','0px');
}
//-->
</script>
我不知道我在做什么,但很想看看我是否接近解决这个问题!