jQuery fadeIn IE Png Issue when loading from external

后端 未结 7 843
-上瘾入骨i
-上瘾入骨i 2020-12-10 23:51

I am loading data from external html files within my domain into a div on my webpage using a load content method in jQuery. I take the div out of the new page whilst hiding

7条回答
  •  孤街浪徒
    2020-12-11 00:24

    I was having a similar problem. I needed to load one of several transparent PNGs into my page based on user input, and have it fade in. I ended up using Drew Diller's Belated PNG fix (intended for IE6). Calling at document ready doesn't work for dynamic content of course, so here's what my script looks like:

    html = '';
    $('#overlay').html(html);
    DD_belatedPNG.fix('#overlay img');
    $('#overlay img').hide().fadeIn(1200);
    

    It's working great in IE7, but I haven't tested IE8 yet.

提交回复
热议问题