目录:
<script>
$(document).ready(function(){
$("button").click(function(){
$("#p").animate({opacity:'0.2',fontSize:'2em'});
$("#p").animate({left:'100px',opacity:'0.5',height:'toggle',width:'+=150px'});
});
});
</script>
<button>点击</button>
<div id="p" style="background:#888888;height:100px;width:100px;position:absolute;">
Hello
</div>
注:
<script>
$(document).ready(function(){
$("#start").click(function(){
$("#p").slideDown(5000);
});
$("#stop").click(function(){
$("#p").stop();
});
});
</script>
<button id="start">开始</button>
<button id="stop">停止</button>
<div id="p" style="background:#888888;height:100px;width:100px;position:absolute;display:none">
Hello
</div>
$(selector).animate({params},speed,callback);
$(selector).stop(stopAll,goToEnd);
注: