标签:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <style type="text/css"> div#result{ width:400px; height:400px; background-color:red; } </style> <script src="js/jquery.js"></script> <script> $(function(){ $(‘#btnslideDown‘).bind(‘click‘,function(){ $(‘#result‘).slideDown(3000); }); $(‘#btnslideUp‘).bind(‘click‘,function(){ $(‘#result‘).slideUp(3000,function(){ alert(‘滑动已完事‘); }); }); $(‘#btnslideToggle‘).bind(‘click‘,function(){ $(‘#result‘).slideToggle(3000); }); }); </script> </head> <body> <div id="result"></div> <hr /> <input type="button" id="btnslideDown" value="SlideDown" /> <input type="button" id="btnslideUp" value="SlideUp" /> <input type="button" id="btnslideToggle" value="SlideToggle" /> </body> </html>
标签:
原文地址:http://www.cnblogs.com/leigood/p/4914717.html