Posted By

kopeo on 08/17/10


Tagged


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

jearley


IE6 png-fix jQuery


 / Published in: JavaScript
 

  1. /*
  2.   Works best for background images with set dimensions
  3.   Just add a ".pngfix" class to anything you want fixed
  4.   or put in some other jQuery selector.
  5. */
  6. $('.pngfix').each( function() {
  7. $(this).attr('writing-mode', 'tb-rl');
  8. $(this).css('background-image', 'none');
  9. $(this).css( 'filter', 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src="path/to/image.png",sizingMethod="scale")');
  10. });

Report this snippet  

You need to login to post a comment.