我使用jQuery 1.7和jQuery UI 16年8月1日jQuery的 - 在Internet Explorer中
我做了一个js小提琴显示我在做什么
但它的工作原理罚款removeClass无效的参数与延迟。
它在Internet Explorer中爆炸。 http://jsfiddle.net/MEDtE/4/
我认为这可能与我使用ui-darkness主题有关,但我不明白为什么。
我追踪的问题jQuery的CUR功能
cur: function() {
if (this.elem[this.prop] != null && (!this.elem.style || this.elem.style[this.prop] == null)) {
return this.elem[this.prop];
}
var parsed,
r = jQuery.css(this.elem, this.prop);
// Empty strings, null, undefined and "auto" are converted to 0,
// complex values such as "rotate(1rad)" are returned as is,
// simple values such as "10px" are parsed to Float.
return isNaN(parsed = parseFloat(r)) ? !r || r === "auto" ? 0 : r : parsed;
}
backgroundPositionY
显然有top
从jQuery.css()
呼叫的值,则返回该值。
jQuery认为这个值是一个百分比,并发生NaN。
我可以解决这个问题吗?
是你试图删除设置backgroundPositionY类?我不知道为什么你买了它,否则...这听起来像是试图动画,并不能解决如何或什么可能... – Chris
@Chris我从来没有触摸backgroundPositionY和从我可以看到ui-darkness主题也没有。我不知道它为什么在那里。 –