<div class="codetitle"> <span><a style="CURSOR: pointer" data="60552" class="copybut" id="copybut60552" onclick="doCopy('code60552')"><u>复代码</u></a></span> 代码如下:</div> <div class="codebody" id="code60552"> <br><style type="text/css"> <br>.divFrame { <br>너비:260px;테두리:1px 솔리드 #666;글꼴 크기:10pt; <br>} <br>.divTitle { <br>배경색:#eee;padding:5px; <br>} <br>.divContent { <br>padding:5px;display:none; <br>} <br>.divCurrColor { <br>배경색:빨간색; <br>} <br></style> <br><script src="jQuery/jquery-1.9.1.js"></script> <br><script type="text/javascript"> <br>$(함수 () { <br>$('.divTitle').click(함수 () { <br>$(this).addClass('divCurrColor').next('.divContent').css ('표시', '차단'); <br>}) <br>}) <br></script> <br></head> <br><본문> <br><div class="divFrame"> <br><div class="divTitle">主题</div> <br><div class="divContent"> <br><a href="#">链接一</a><br /> <br><a href="#">链接two</a><br /> <br><a href="#">链接三</a> <br></div> <br></div> <br></body> <br> </div>