Original article go to: http://www.itivy.com/ivy/archive/2011/2/19/634337550187186848.html
IE6 has many problems. One of the problems is that the background of a PNG image cannot be transparent. Instead, it is replaced by a color block. Sometimes we want to use a PNG transparent image as a small icon, this is a tangle in IE6. Next we will use a jquery plug-in to solve this problem, hoping to help you.
- First download supersleight for jqueryand then download a transparent GIF image transparent.gif.
- Reference script:
<SCRIPT type = "text/JavaScript" src = "/scripts/jquery-1.4.1.min.js"> </SCRIPT> <SCRIPT type = "text/JavaScript" src = "/scripts/jquery. supersleight. JS "> </SCRIPT> <SCRIPT type =" text/JavaScript "> $ (document ). ready (function () {$ ('body '). supersleight ({Shim: '/scripts/transparent.gif'}) ;}); </SCRIPT>
Download the demo here