我想为背景位置设置动画但不工作。这可以动画吗
<head>
<style>
.test{ background:#F00}
</style>
<script type="text/javascript" src="jquery-1.8.3.js"></script>
<script type="text/javascript">
$(function(){
$('a').click(function(){
$(this).animate({backgroundPosition:'-50px 10px'}, 200);
});
});
</script>
</head>
<body>
<a href="javascript:void(0)">click</a>
<div>check....</div>
</body>