IE6下 class选择器和png图片的bug

来源:互联网 发布:wave三人动作数据下载 编辑:程序博客网 时间:2024/05/17 07:07



1、png图片在IE6下透明的方法之一,(* html selecter { behavior: expression(DD_belatedPNG.fixPng(this)); }),与js通过添加其父节点的class名称,来改变样式,会出现bug

      其原因就是下面的这段因为加上透明图片功能的代码造成的。

{

      <?XML:NAMESPACE PREFIX = DD_belatedPNG NS = "urn:schemas-microsoft-com:vml" />
    <DD_belatedPNG:shape style="Z-INDEX: 3; LEFT: 13px; WIDTH: 74px; TOP: 16px; HEIGHT: 50px; BACKGROUND-COLOR: transparent" coordsize = "74,50" filled = "f" stroked = "f" path = " m0,0 l74,0,74,50,0,50 xe">
        <DD_belatedPNG:fill></DD_belatedPNG:fill>
    </DD_belatedPNG:shape>
    <DD_belatedPNG:shape style="Z-INDEX: 3; LEFT: 13px; WIDTH: 75px; CLIP: rect(1px 75px 48px 1px); TOP: 16px; HEIGHT: 51px" coordsize = "75,51" coordorigin = "1,1" filled = "t" fillcolor = "none" stroked = "f" path = " m0,0 l75,0,75,51,0,51 xe">
        <DD_belatedPNG:fill src = "http://localhost:90/Styles/core/images/common/Topic/bg-t-cell.png" type = "tile" position = "873f,1285f"></DD_belatedPNG:fill>
    </DD_belatedPNG:shape>

}

原创粉丝点击