A super simple jQuery code to implement the PNG transparent background of IE6

From , 5 Years ago, written in JavaScript, viewed 218 times.
URL https://pastebin.vip/view/d397c2b2
  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. });
  11. //javascript/3892

Reply to "A super simple jQuery code to implement the PNG transparent background of IE6"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website