【问题标题】:CSS3 Pie removes background images in <li>CSS3 Pie 移除 <li> 中的背景图片
【发布时间】:2012-02-08 13:05:05
【问题描述】:

当我的页面在 IE (7,8) 中加载时,我在左列 li 中的背景图像会在 CSS3 Pie 启动之前的一瞬间显示,将边框添加到它想要的 li 元素,然后从中删除背景图像我的列表项是这样的......

http://goo.gl/xCz39

在 FF 中,如果您想查看它的外观,这很有效。如果有人有这个,我会很感激。非常感谢!

【问题讨论】:

    标签: html css css3pie


    【解决方案1】:

    在某些情况下,CSS 中的绝对图片链接也可以解决问题。

    喜欢:

    #yourdiv{
        behavior:url(css/PIE.htc);  
        -pie-background:
                  url(permalink-here/your-image.png) right no-repeat,
                  url(permalink-here/your-image.png) left no-repeat;
    }
    

    【讨论】:

      【解决方案2】:

      我怀疑问题是这样的:由 Pie 生成的元素,对于边框,具有比具有背景图像的原始元素更高的 z-index。

      尝试给予

      #content-left ul li a{position:relative;}
      

      或者尝试here建议的其他解决方案

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2012-07-02
        • 2011-03-24
        • 2011-07-11
        • 2023-03-16
        • 2013-02-12
        • 2012-05-30
        • 2018-02-25
        相关资源
        最近更新 更多