English 中文(简体)
J Query animation in Pre-IE9
原标题:JQuery animation in Pre-IE9

这可能是一个简单的解决办法,但我没有能够找到任何东西。

在我的法典Im中:

$( #animateObject ).animate({
     position :  absolute ,
     height : thisWidgetSettings.detailHeight,
    width: thisWidgetSettings.detailWidth,
    marginTop:  -120px ,
    marginLeft:  -320px ,
    top: $(window).height() / 2 - (parseInt(thisWidgetSettings.detailHeight, 10) / 2) + 120 + $(window).scrollTop(),
    left: $(window).width() / 2 - (parseInt(thisWidgetSettings.detailWidth, 10) / 2) + 320 + $(window).scrollLeft()
}, 500);

在IE9、Safari、Grea和Khatrah,这都是伟大的,完全是我所希望的。 然而,在IE7和IE8中,以下线造成了错误。

// JQuery 1.7.2 Line 8938
    this.now = this.start + ( (this.end - this.start) * this.pos );
}
this.update();

我认为,造成这一错误的原因是,此时此刻。 现在已经确定,如果所传递的数值不算数字,就是如此。 现在最后是像“绝对的NaN”这样的东西,导致更新职能失败。 我以不正确的方式将一些东西转嫁给囚犯,或者这是否与JQuery有关?

最佳回答

其原因是,“成人”在非数字价值方面不做工作,例如320px。 相反,在320年通过只是罚款。

问题回答

暂无回答




相关问题
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 ...

热门标签