我的代码有什么问题?动画即将在两个值之间更改单元格的宽度。动画不起作用。你能修复脚本部分吗?我很着急。
<!DOCTYPE html>
<html>
<head>
<script src="jquery-1.9.1.js" type="text/javascript"></script>
<style type="text/css">
.tbl{display: table;}
.cell{display: table-cell;}
.container{background: url("bgs/12.png")no-repeat;width: 179px;height: 119px;}
#leftP{background: url("bgs/16.png")no-repeat right;width: 86px;height: 119px}
</style>
<script type="text/javascript">
$(document).ready(function(){
function Animation(){
$('leftP').animate({width:'48px'},"slow");
$('leftP').animate({width:'86px'},"slow","",Animation());
}
});
</script>
<title></title>
</head>
<body>
<div class="container tbl">
<div id="leftP" class="cell width"></div>
<div class="cell"></div>
</div>
</body>
</html>