开发者

Loading content via AJAX destroy the font in IE

开发者 https://www.devze.com 2023-01-10 15:12 出处:网络
Look at this page. Press the orange -> button and then the <- again. This paginator shows the page 1 by default and load the other pages\' content via AJAX. However, that default page 1 conte
  1. Look at this page.

  2. Press the orange -> button and then the <- again.

This paginator shows the page 1 by default and load the other pages' content via AJAX. However, that default page 1 content and the ajax loaded page 1 content don't look the same in IE, even when the html and css are exactly the same开发者_StackOverflow!. You can see the font is thin and ugly, especially in the blue headers.

Why is this happening and how do I make it stop?


@John, I managed to solved using this code:

$('.css-selector').each( function( i, el ){
    try { el.style.removeAttribute( 'filter' ); } catch( e ){}
});

And, if you are not using jQuery, I think this can still work:

try {
    document.getElemenyById('id_element').style.removeAttribute('filter');
} catch(e){}
0

精彩评论

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