<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>jQuey手风琴效果</title>
<script type="text/javascript" src="jq.js"></script>
<style type="text/css">
*{margin:0px;padding:0px;font-size:14px;font-weight:'微软雅黑';}
a{text-decoration:none;font-weight:'微软雅黑';font-size:14px;color: #000000}
.nav{width:250px;margin:70px auto;border-bottom:3px solid pink;border-top:3px solid pink;border-left: 1px solid pink;border-right: 1px solid pink;}
.one{width:250px;line-height:50px;line-height:50px;text-align:center;border-bottom:1px /*dashed*/ solid pink;}
.two div{line-height:45px;text-align:center;border-bottom:1px dashed pink;}
</style>
<script type="text/javascript">
$(function(){
$('.two').css('display','none');
var none = $('.none');
var two = $('.two');
$('.one').each(function(i){
$(this).click(function(){
if ($(two[i]).css('display')=='none') {
$(two[i]).slideDown(400);
}else{
$(two[i]).slideUp(400);
}
})
})
})
</script>
</head>
<body>
<div class="nav">
<div class="parent">
<div class="one">
<strong>个人中心</strong>
</div>
<div class="two">
<div><a href="">我的信息</a></div>
<div><a href="">系统通知</a></div>
<div><a href="">短信息</a></div>
</div>
</div>
<div class="parent">
<div class="one">
<strong>课程中心</strong>
</div>
<div class="two">
<div> <a href="#">我的课程</a></div>
<div> <a href="#">课程资源</a></div>
<div> <a href="#">班级统计</a></div>
<div> <a href="#">课程题库</a></div>
</div>
</div>
<div class="parent">
<div class="one">
<strong>校内讨论</strong>
</div>
<div class="two">
<div> <a href="#">我的帖子</a></div>
<div> <a href="#">新回复</a></div>
<div> <a href="#">课程板块</a></div>
<div> <a href="#">问答中心</a></div>
</div>
</div>
<div class="parent">
<div class="one">
<strong>资源中心</strong>
</div>
<div class="two">
<div> <a href="#">教学资源</a></div>
<div > <a href="#">教学经历</a></div>
</div>
</div>
</div>
</body>
</html>