<div class="codetitle"> <span><a style="CURSOR: pointer" data="92377" class="copybut" id="copybut92377" onclick="doCopy('code92377')"><u>复代码</u></a></span> 代码如下:</div> <div class="codebody" id="code92377"> <br><script src="Jquery1.7.js" type=" 텍스트/자바스크립트"></script> <br><script type="text/javascript"> <br>$(함수 () { <br>$('#btn').click(함수 () { <br>//$('span:hidden').addClass('class1').show() ; <br>$(':hidden').addClass('class1').show() <br><br>//$('div:visible').addClass('class1'); $('div:visible').addClass('class1') <br>}) <br>}) <br></script> <br></head> <br><본문> <br><form id="form1"> <br><div> <br>第一层</div> <br><span style="display: none;">숨김</span> <br><input type="button" id="btn" value="显示" /> <br></form> <br></body> <br><br> </div>