2013-07-10 60 views
-1

下面的CSS拋出一個警告(在鍍鉻效果很好):無效的屬性值IE瀏覽器中的屬性值無效?

#commentblock ol li { 
    background: url(../img/comment-bottom.png) no-repeat scroll left 50px bottom 
} 

什麼是錯在上面的CSS?請任何幫助!

更新:

我修改的CSS如下,那麼它可以顯示背景PIC,但它不是我想要什麼?

#commentblock ol li { 
    background: url(../img/comment-bottom.png) no-repeat scroll left bottom 
} 

enter image description here

我現在應該怎麼辦?紅色矩形中的圖片是#commentblock ol li。

+0

哪個IE版本? – scrblnrd3

+0

@helloworld IE8 – Charles0429

+0

只是要指出,在末尾缺少分號 –

回答

0

該位置只能有兩個值,一個用於水平,一個用於垂直。你有三個:left 50px bottom。那三個中哪兩個是你的意思?

在你的問題你說你試圖刪除50px,但我的猜測是你的意思是要刪除left

#commentblock ol li { 
    background: url(../img/comment-bottom.png) no-repeat scroll 50px bottom 
} 

(不能用小提琴說明,對不起,因爲我沒有你的圖形。)