Forked from abbotto/jQuery PNG Fix for IE6 Background Images
Last active
August 29, 2015 14:18
-
-
Save positiveque/f9ccc2acb742bc6dbc23 to your computer and use it in GitHub Desktop.
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