2010-03-26 73 views
0

我使用以下CSS,但它從不在IE6中顯示背景圖像。但是,如果我刪除過濾器AlphaLoader命令,那麼它顯示灰色背景。LI背景圖像(.PNG)未出現在IE6中

這是我的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; 
} 

回答

0

AlphaImageLoader黑客才起作用。

如果您將widthheightdisplay:block添加到您的<li>的應該沒問題。否則 - 考慮不同的方法。

0

聯繫我從來沒有嘗試過的jQuery插件,但有很多的問題,PNG在IE6之後打交道,我發現最好的解決方法是迄今爲止DD Belated PNG fix。之前提到的TwinHelix修復在某些情況下對我提出了一些問題。