DD_belatedPNG

JavaScript , Webdesign Add comments

Purpose is very simple to repair IE6 on the background-image in 24-bit PNG support issues (not transparent).

Also easy to use:

<!--[if IE 6]>
<script src="DD_belatedPNG.js"></script>
<script>
DD_belatedPNG.fix('.png_bg'); /* EXAMPLE */
/* string argument can be any CSS selector */
/* using .png_bg example is unnecessary */
/* change it to what suits you! */
</script>
<![endif]-->


The main principle is to use VML, VML as well realized in the PNG format support.

Known issues:

  1. Can not be used on the body contains a PNG image CSS style
  2. <TD> And <TR>'s performance is not good
  3. Did not achieve background-position: fixed;

Link: DD_belatedPNG

Download: uncompressed (~ 9kb) ... Compressed (~ 5KB)

  • Share / Bookmark

No related posts.

Related posts brought to you by Yet Another Related Posts Plugin .

Leave a Reply


WP Theme & Icons by N. Design Studio
Entries RSS Comments RSS Log in