不明白为什么左移不了
<!DOCTYPE html>
<html>
<style type="text/css">
div
{
margin: 10px 0px;
}
span
{
position:absolute;
width:80px;
height:80px;
border: solid 4px #ccc;
margin: 50px 50px;
background-color: Red;
color:White;
vertical-align:middle
}
</style>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>jQuery动画特效</title>
<script src="http://libs.baidu.com/jquery/1.9.0/jquery.js" type="text/javascript"></script>
</
</head>
<body>
<h3>创建按钮播放动画</h3>
<span></span>
<div id="tip"> </div>
<input id="left" type="button" value="左移"></br>
<input id="right" type="button" value="右移">
<script type="text/javaScript">
$(function(){
$("left").bind("click",function(){
$("span").animate({
left:"-=50px"
},100,function () {
$("#tip").html("执行完成!");
})
})
});
</script>
</body>
</html>