导航栏特效:
例子:
<body>
<div id="ceshi" style="background:#006; width:200px;
height:100px;">A</div>
<div style="display:none;" id="b">
<div style="background:#036; width:200px; height:50px;">B</div>
<div style="background:#036; width:200px; height:50px;">C</div>
<div style="background:#036; width:200px; height:50px;">D</div>
</div>
效果:点击A 会出现B C D
JS代码 用到了toggle方法
<script>
$(document).ready(function(e) {
$("#ceshi").click(function(){
$("#b").toggle();
})
});
</script>