开发者

jquery animate is not working in IE 7

开发者 https://www.devze.com 2023-01-18 17:47 出处:网络
This is my code and it\'s working in Firefox , Safari and Chrome. However, can\'t work in IE 7. How to fix it ?

This is my code and it's working in Firefox , Safari and Chrome. However, can't work in IE 7. How to fix it ?

jQuery(".jqbox_innerhtml").animate({
        "width":"400px",
        "height":"200px",
        "margin-top":"300px",
        "margin-left":"200px",
        "opacity":1,
        }, 1000,function(){
            开发者_StackOverflow社区                                jQuery(".jqbox_close").fadeIn("fast");
        alert("Done");
    });


After testing what i put in the comments and seeing that it works, i post it as an answer,

Remove the , after the "opacity":1

In IE it throws an error and so javascript stops executing..

0

精彩评论

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