检查几次,不知道问题在哪。。。求助
<!DOCTYPE html>
<html>
<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>
<style type="text/css">
div
{width:100px;
height:100px;
background-color:red;
margin:10px auto;}
</style>
</head>
<body>
<input id="left" type="button" value="左移"></input>
<input id="right" type="button" value="右移"></input>
<script type="text/javascript">
$(function (){
$("#left").bind("click",function(){
$("div").animate({left:"+=50px"},800);
});
$("#right").bind("click",function(){
$("div").animate({left:"-=50px"},800);
});
});
</script>
<div></div>
</body>
</html>问题在哪啊?