日期:2014-05-16 浏览次数:20381 次
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <TITLE> New Document </TITLE> <style type="text/css"> .d1{border: #E3E3E3 thin solid;background-color:#99CCCC;} .d2{border: #E3E3E3 thin solid;background-color:#99CC99;} .d3{border: #E3E3E3 thin solid;background-color:#9999CC;} .title{background-color:#99CCCC; height:40px;} .content07{border: #E3E3E3 thin solid;background-color:#9999CC; height:75px;display:none;} </style> <script type="text/javascript" src="jquery-1.3.2.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ $(".d1,.d2,.d3").click(function(){ $(this).find("div[class='content07']").slideToggle("slow"); }); }); </script> </HEAD> <BODY> <div class="d1"> <div class="title">d1</div> <div class="content07">content07</div> <div class="content07">content07</div> <div class="content07">content07</div> </div> <div class="d2"> <div class="title">d2</div> <div class="content07">content07</div> <div class="content07">content07</div> <div class="content07">content07</div> <div class="content07">content07</div> <div class="content07">content07</div> </div> <div class="d3"> <div class="title">d3</div> <div class="content07">content07</div> <div class="content07">content07</div> </div> </BODY> </HTML>