码迷,mamicode.com
首页 > Web开发 > 详细

jQuery生成横向带缓冲的水平运动

时间:2014-07-17 12:54:51      阅读:194      评论:0      收藏:0      [点我收藏+]

标签:style   blog   http   java   color   os   

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>水平移动</title>
<style type="text/css">
*{margin:0;padding:0;}    
body { padding: 60px }
#panel {position: relative; width: 100px; height:100px;border: 1px solid #0050D0;background: #96E555; cursor: pointer}
</style>
<script src="/ajaxjs/jquery-1.6.2.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(function(){
    $("#panel").click(function(){
       $(this).animate({left: "500px"}, 3000);
    })
})
</script>
</head>
<body>
<div id="panel"></div>
</body>
</html>

jQuery生成横向带缓冲的水平运动,布布扣,bubuko.com

jQuery生成横向带缓冲的水平运动

标签:style   blog   http   java   color   os   

原文地址:http://www.cnblogs.com/youtianxia/p/3850256.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!