0
颜色动画不WebKit的wokr(Safari浏览器铬)'颜色动画插件' 不WebKit的工作(Safari浏览器铬)
http://plugins.jquery.com/project/color
<script type="text/javascript" src="jquery.color.js">s</script>
$('#start').animate({ 'backgroundColor':'yellow' }, 1000,'linear', function() {
})
它是行之有效的Firefox
为什么?
感谢
答案是背景,看看下面的代码
,你会发现一个不跑,和b是确定(在Safari和Chrome):
<dl id=a style="width:100px;height:100px;">
</dl>
<dl id=b style="width:100px;height:100px;background:#fff">
</dl>
<script src="jquery-1.3.2.min.js" type="text/javascript"></script>
<script src="jquery.color.js" type="text/javascript"></script>
<script type="text/javascript">
$('#a,#b').animate({ backgroundColor: "orange" }, 1000)
.animate({ backgroundColor: "yellow" }, 1000)
.animate({ backgroundColor: "green" }, 1000)
</script>
你的代码示例看起来不完整。 – Josh 2010-03-10 08:34:16
暂时忽略我的答案。演示网站是否适用于您的Chrome版本? http://dev.jquery.com/~john/ticket/fx-rewrite2/ – Anthony 2010-03-10 08:38:47
好的,新的答案已经结束。让我知道是否有帮助。 – Anthony 2010-03-10 08:45:36