【发布时间】:2010-12-14 05:41:52
【问题描述】:
我想将“exampleDiv”的背景颜色从原来的白色背景更改为当我调用下面的代码立即将背景更改为黄色然后淡出回到原来的白色背景时。
$("#exampleDiv").animate({ backgroundColor: "yellow" }, "fast");
但是,此代码不起作用。
我只有 JQuery 核心和 JQuery UI 链接到我的网页。
为什么上面的代码不起作用?
【问题讨论】:
-
这能回答你的问题吗? jQuery animate backgroundColor
标签: javascript jquery jquery-animate