LI背景图像(.PNG)未出现在IE6中

时间:2010-03-26 10:34:57

标签: css internet-explorer-6

我正在使用以下CSS但它从未在IE6中显示背景图像。但是如果我删除过滤器.. AlphaLoader命令,那么它会以灰色背景显示。

这是我的CSS代码

.fg-block1 ul, .fg-block3 ul
{
 list-style:none;
 }
.fg-block1 ul li, .fg-block3 ul li
{
 padding-left:28px;
 background:url(images/bullet-2.png) no-repeat left top;
 font-family:Verdana, Arial, Helvetica, sans-serif;
 font-size:11px;
 border-bottom:1px dotted #fff;
 text-align:left;
 background-position:1px 0;
 line-height:16px;
 padding-bottom:5px;
 margin-bottom:5px;
}
.fg-block3 ul li
{
 border-bottom:none;
}
.fg-block1 ul li a, .fg-block3 ul li a
{
 color:#fff;
 text-decoration:none;
}
.fg-block1 ul li a:hover, .fg-block3 ul li a:hover
{
 color:#fff;
 text-decoration:underline;
}

4 个答案:

答案 0 :(得分:1)

答案 1 :(得分:0)

AlphaImageLoader hack只有在您将png作为背景加载到父容器中时才有效。

如果您将widthheight以及display:block添加到<li>,则应该没问题。否则 - 考虑不同的方法。

答案 2 :(得分:0)

我推荐jQuery png修复。见下面的链接

jQuery plugin

another source

答案 3 :(得分:0)

我从未尝试过jQuery插件,但在IE6中处理了很多PNG问题后,我发现的最佳修复方法是DD Belated PNG fix。之前提到的TwinHelix修复程序在某些情况下为我提出了一些问题。

相关问题