求大神告诉我代码有什么问题
代码如下 <!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>jQuery动画特效</title>
<style>
div{
position:relative;
height:100px;
width:100px;
background-color:blue;
left:200px;
}
</style>
</head>
<body>
<div></div>
<input type="button" value="左移" id="left"/>
<input type="button" value="右移" id="right" />
<span></span>
<script src="http://libs.baidu.com/jquery/1.9.0/jquery.js" type="text/javascript">
$(function(){
$("#left").bind("click",function(){
$("div").animate({
left: "-=50px"
},3000,function(){
$(this).html("左移完成")
});
});
$("#right").bind("click",function(){
$("div").animate({
left: "+=50px"
},3000,function(){
$(this).html("右移完成")
});
});
})
</script>
</body>
</html>