Last active
December 21, 2015 04:28
-
-
Save abbotto/6249732 to your computer and use it in GitHub Desktop.
Super Simple jQuery PNG Fix for IE6 background images
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| Works best for background images with set dimensions | |
| Just add a ".pngfix" class to anything you want fixed | |
| or put in some other jQuery selector. | |
| */ | |
| $('.pngfix').each( function() { | |
| $(this).attr('writing-mode', 'tb-rl'); | |
| $(this).css('background-image', 'none'); | |
| $(this).css( 'filter', 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src="path/to/image.png",sizingMethod="scale")'); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment