English 中文(简体)
j Query - Invalid Argument onmovClass with time in Internet Exploration
原标题:jQuery - Invalid Argument on removeClass with delay in Internet Explorer

我正在使用j Query 1.7和j Query UI 1.8.16。

I made a js fiddle to show what I m doing however it works fine. and it blows up in internet explorer. http://jsfiddle.net/MEDtE/4/

我认为,这可能与我使用自食堂主题有关,但我看不出原因。

I traced the problem to the jQuery cur function

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;
}

<代码>后继地点。 看来在<代码>j Query.csss()中具有top的价值,该数值已退还。

j 贵族认为这一数值是一个百分点,是纳恩。

我能否确定这一点?

最佳回答

This is resolved in jQuery 1.7.1.
http://bugs.jqueryui.com/ticket/7915

第24期: P-3

问题回答

我使用定时和浏览器的估算结果好坏参半。 我将把这些事情都放在 j子里,并利用 j子的拖延功能。 这应当保持所有浏览器的相同。

<script>
$(document).ready(function(){
  $( #myp ).delay(500).removeClass( ui-state-highlight ,1500);
});
</script>

第2条 消除这种说法 班级。 拆除 班级只有1个论据。





相关问题
Image rendered with wrong colors in IE8

I have a gradient image as a PNG (no transparency) in a web-page. By taking a screenshot of Chrome showing the page and cropping the image from the page, I see the exact same colors are drawn as the ...

Determine Mobile Internet Explorer version

I need to determine the version of Mobile Internet Explorer on a Windows Mobile 6.1 device. So that I can report the same user-agent string as is being used by Mobile Internet Explorer. The user-...

CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

Internet Explorer only part loading JavaScript/CSS

I m having trouble with my local development environment where IE (6 through to 8) is only part loading JavaScript/CSS files. It throws random errors at random places in jquery.min.js every time I ...

IE doesn t run Javascript when you click back button

I ve built a shop with tons of JS running. One of the pieces of the cart, is a zip code field which is required to calculate shipping cost. This works fine going through the cart. Now clicking ...

热门标签