jQuery和动画backgroundPosition在Google CDN的1.5.0版本中不再起作用 [英] JQuery and animate backgroundPosition no longer works in version 1.5.0 from Google CDN
问题描述
我最近从使用Google CDN加载JQuery 1.4.4升级到1.5.0.升级后,backgroundPosition动画停止运行.
I recently upgraded from loading JQuery 1.4.4 to 1.5.0 with Google CDN. When I upgraded, my backgroundPosition animations stopped functioning.
例如,我曾经有:
$(this).stop().animate({backgroundPosition: ['-1800px 0px', 'easeOutExpo']},5000);
For example, I used to have:
$(this).stop().animate({backgroundPosition: ['-1800px 0px', 'easeOutExpo']},5000);
此功能在从Google CDN加载的1.5.0版本中不再起作用.请注意,我使用的也是从Google CDN加载的JQuery UI 1.8.9.
This no longer works in version 1.5.0 loaded from Google CDN. Let it be noted that I am using JQuery UI 1.8.9, also loaded from Google CDN.
还有其他人遇到过类似的问题吗?
Has anyone else encountered similar problems?
推荐答案
这实际上是一个已知的错误,它用jQuery UI破坏了很多东西.我的建议是,对于临时而言,仅指的是旧版jQuery,如下所示:
This is actually a known bug, it's breaking quite a few things with jQuery UI. My recommendation, for the interim is just refer to an older jQuery version, something like this:
http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js
http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js
这篇关于jQuery和动画backgroundPosition在Google CDN的1.5.0版本中不再起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!