demo中点击按钮后div元素的几个不同属性一同变化
<script type="text/javascript">
$(document).ready(function(){
$(".button").toggle(
function(){
$(".content").animate({
width: "90%",
height:"500px"
}, 1500 );
},
function(){
$(".content").animate({
width: "10%",
height:"100px"
}, 1500 );
}
);
});
</script>