<div class="codetitle"> <span><a style="CURSOR: pointer" data="79891" class="copybut" id="copybut79891" onclick="doCopy('code79891')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code79891"> <br>if( document.getElementById("div").css("display")==='none') <br><br>if( document.getElementById("div").css("display")==='block') <br><br>$("#div").is(":hidden"); // 判断是否隐藏 <br><br>$("#div").is(":visible") <br> </div>