浏览了一下,外国的英文网站,转悠阿转悠,看到一串js代码,,就研究了一下,,原来是 在ie6上 让他显示png图片..
很简单,但研究了蛮长时间.转载请注明http://netsos.cnblogs.com/
先贴代码
<!--[if IE 6]>
<script type="text/javascript" src="DD_belatedPNG_0.0.8a.js"></script>
<script type="text/javascript">
DD_belatedPNG.fix('.png_bg,img');
</script>
<![endif]-->
<script type="text/javascript" src="DD_belatedPNG_0.0.8a.js"></script>
<script type="text/javascript">
DD_belatedPNG.fix('.png_bg,img');
</script>
<![endif]-->
在这里先解释一下 DD_belatedPNG.fix('.png_bg,img');这一句话
DD_belatedPNG.fix 是固定不变的..
'.png_bg,img' 类名,标签名
js,在附件给大伙! /Files/NetSos/DD_belatedPNG_0.0.8a.rar