Jquery .show() not working in firefox

后端 未结 4 2077
南旧
南旧 2021-02-14 01:30

I have a problem with the jquery show function in firefox.

Situation: I have loaded a iframe with an aspx page in a popup (fancybox). In that aspx page I have a button

4条回答
  •  醉话见心
    2021-02-14 02:07

    I had a similar problem. I did set this in my css:

    body { display: none }
    

    and tried to change this in jQuery:

    $("body").show();
    

    which did not work in Firefox.

    After I changed the HTML to

    
    

    and removing the part from CSS I was able to use jQuery show(); flawless

    It seems that the inheritance of css rules does not follow the same routine in Firefox as in IE / Chrome.

提交回复
热议问题