先看下效果图吧!其实是一个很简单的东西。只是对以前的知识复习下。这里就不做详细说明了,懂得jQuery的选择器和效果就行了。

jQuery的代码如下:
jQuery(document).ready(function(){
jQuery("dd:not(:first)").hide();
jQuery("dt a").click(function(){
jQuery("dd:visible").slideUp("slow");
jQuery(this).parent().next().slideDown("slow");
return false;
});
});
jQuery("dd:not(:first)").hide();
jQuery("dt a").click(function(){
jQuery("dd:visible").slideUp("slow");
jQuery(this).parent().next().slideDown("slow");
return false;
});
});