skyblue
代码
* html img, 
* html .png
{
    behavior
: expression((this.runtimeStyle.behavior="none")&&(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 = "transparent.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)
        
    )
;
}

transparent.gif 自己做一个背景透明图片即可。

分类:

技术点:

相关文章:

  • 2021-08-28
  • 2021-11-08
  • 2021-11-17
  • 2021-12-04
  • 2021-12-14
  • 2021-12-04
  • 2021-12-04
  • 2021-12-04
猜你喜欢
  • 2021-12-04
  • 2021-11-20
  • 2021-11-20
  • 2021-09-08
  • 2021-12-30
  • 2021-11-20
  • 2021-12-04
相关资源
相似解决方案