解决ie6下的png问题js代码

上一篇 / 下一篇  2009-10-13 18:08:21 / 个人分类:网页技术

查看( 88 ) / 评论( 0 )
使用说明:

PNG的页面中引用代码

CODE:

<!–[if IE 6]>
  <script. type=”text/javascript” src=”下载下来的JS路径”></script>
  <script>
    DD_belatedPNG.fix(’CSS选择器, 应用类型’);
  </script>
<![endif]–>
引用函数是 DD_belatedPNG.fix() , 括号里分别填写应用PNG的CSS选择器(可使用ID选择器和类选择器)和应用类型(分为img和background两种)。

如DD_belatedPNG.fix(’#box-one, img’) 或者 DD_belatedPNG.fix(’.header, background’) 等。

这些可以简写成 DD_belatedPNG.fix(’#box-one, .header, img,background’);  。

更多选择器的如 DD_belatedPNG.fix(’#box-one, .header,#footer,.box-two a:hover, img,background’);  等等。

参考资料:
http://dillerdesign.com/experiment/DD_belatedPNG/
http://www.osmn00.com/?p=419
http://www.14pc.com/?p=26
http://www.auzoom.com/career/20091013/ie6-png-ddbelatepng/

DD_belatedPNG_0.0.8a.rar
(2009-10-13 18:08:14, Size: 7.65 KB, Downloads: 0)


TAG:

我来说两句

(可选)

Open Toolbar