$(this).find(".bag_tool").animate({ width: 'toggle' }); //左折叠



<style type="text/css">
.slide {
position: relative;
height: 200;
lightyellow;
}
 
.slide .inner {
position: absolute;
left: 0;
bottom: 0;
height: 100;
lightblue;
width: 100%
}
</style>
$("#slideleft button").click(function(){//左滑动
var $lefty = $(this).next();
$lefty.animate({
left:parseInt($lefty.css('left'),10)==0 ? -$lefty.outerWidth() : 0
});
});



$("#slidemarginleft button").click(function(){//右滑动
var $marginlefty = $(this).next();
$marginlefty.animate({
marginLeft:parseInt($marginlefty.css('marginLeft'),10)==0 ? $marginlefty.outerWidth() : 0
});
});