jQuery实现手风琴效果
源码分析:
$(".sfq_inul > .sfq_inli").click(function(){
//使点击到的元素宽度增加并把相邻元素的宽度恢复初始状态
$(this).stop().animate({width:801},500).siblings().stop().animate({width:60},500);
});
$(".sfq_inul > .sfq_inli").click(function(){
//使点击到的元素宽度增加并把相邻元素的宽度恢复初始状态
$(this).stop().animate({width:801},500).siblings().stop().animate({width:60},500);
});