今天给大家介绍的是我平时用的解决方案——DD_belatedPNG,这个是暂时来说最好的解决方案了,他使用微软的VML语言对PNG图片进行 重新绘制,以达到半透明的效果,所以对所有的样式支持的很好,你可以把png图片用于<IMG/>或者background-image
<!--[if IE 6]>
<script type="text/javascript" src="http://dillerdesign.com/experiment/DD_belatedPNG/DD_belatedPNG_0.0.8a-min.js"></script>
<script type="text/javascript">
DD_belatedPNG.fix('.png');
/* .png是所有应用了透明PNG的CSS选择器,你可以用你自己的选择器,比如 DD_belatedPNG.fix('.box a:hover');
对于:focus和:hover伪类,可以用DD_belatedPNG.fix('.png, a.png:hover, .png:focus');
*/
</script>
<![endif]-->