开发者

Doctype breaks jquery fadeOut method in IE!

I recently added a doctype to my page to help fix a little IE rendering problem. It looks like so:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

My fadeOut code (I'm using stop(true,true) to restart the animation if its in progress):

$('#myElement').s开发者_运维百科top(true, true).show().fadeOut(5000);

Now, my jquery fadeOut(5000) method doesn't fade in IE anymore. Does anyone know of a fix for this?

EDIT: I've tried pretty much every flavor of DOCTYPE out there, and no matter which one I use, the fadeOut animation does NOT work in IE.


Have you tried another Doctype, like transitional or xhtml?


i think that its not about doctype. All ie versions always having troubles with fade animations.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜