我使用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主題也沒有。我不知道它爲什麼在那裏。 –