ie css png

在IE6下经常 很有 跟多插件 劳作png透明效果 但有时候 js 不起作用了  用 css滤镜 也不错  在这里推荐 css 滤镜写法

下面图片位置 是相对与html 的位置

首先必须下载 一张 blank.gif  图片 或者自己制作一张  下载地址有 具体地址参考 http://www.w3cfuns.com/forum.php?mod=viewthread&tid=297&highlight=IE6%2Bpng

_azimuth:expression(this.pngSet?this.pngSet=true:(this.nodeName == "IMG" && this.src.toLowerCase().indexOf('.png')>-1?(this.runtimeStyle.backgroundImage = "none",this.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + this.src + "', sizingMethod='image')",this.src = "img/blank.gif"):(this.origBg = this.origBg? this.origBg :this.currentStyle.backgroundImage.toString().replace('url("','').replace('")',''),this.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + this.origBg + "', sizingMethod='crop')",this.runtimeStyle.backgroundImage = "none")),this.pngSet=true);

原文地址:https://www.cnblogs.com/woohblog/p/3164342.html