Loading content via AJAX destroy the font in IE
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 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){}
精彩评论