zoukankan      html  css  js  c++  java
  • 针对img标签 ie6下 png图片透明CSS代码

    代码
    * 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 自己做一个背景透明图片即可。

  • 相关阅读:
    31
    30
    29
    28
    27
    26
    25
    23
    cesium 基础
    操作SDO_GEOMETRY字段
  • 原文地址:https://www.cnblogs.com/skyblue/p/1915085.html
Copyright © 2011-2022 走看看