手风琴效果展示
很容易修改的手风琴效果 $(function(){ $(".voice_2 ul li").each(function(){ var fold = $(this).find(".fold"); var unfold = $(this).find(".unfold"); if(fold.is(":hidden")){ $(this).width(680); }else{ $(this).width(100); } }) $(".voice_2 ul li").click(function(){ var li_index = $(this).index(); $(this).animate({width:680},200); $(this).find(".unfold").show(); $(this).find(".fold").hide(); $(this).siblings().animate({width:100},200); $(this).siblings().find(".unfold").hide(); $(this).siblings().find(".fold").show(); }) })