日期:2014-05-16 浏览次数:20372 次
<!DOCTYPE HTML> <html> <head> <meta charset="gb2312" /> <title></title> <style> div { width:100px; height:100px; border:1px solid red; } </style> <script src="http://code.jquery.com/jquery-latest.js"></script> </head> <body> <div></div> <script> $('div').animate({ marginLeft: 500 }, 5000) </script> </body> </html>