2013-03-05 98 views
2

當我把下面的CSS,背景圖像不來ie8和ie7。背景不工作在IE8

#bottom-thumb2{  
    width: 212px; 
    height:300px; 
    /*margin:5px 5px 5px 5px;*/ 
    padding:7px; 
    width:23%; 
    border-right:2px #cecece solid; 
    background: url(../images/user912_modules_bg.png)repeat-y scroll right center rgb(255, 255, 255) ; 
    font-size: 11px; 
    float:left; 
    overflow:auto; 
} 

回答

2

你就在這條線url(../images/user912_modules_bg.png)repeat-y,而不是url(../images/user912_modules_bg.png) repeat-y缺少空間。


試試這個:

background: url(../images/user912_modules_bg.png) repeat-y scroll right center rgb(255, 255, 255) ; 

爲了避免混淆,分別申報。像這樣:

background-image: url(../images/user912_modules_bg.png); 
background-repeat: repeat-y; 
background-attachment: scroll; 
background-position: right center; 
background-color: rgb(255, 255, 255) ; 
+0

邊框語法不正確。它可以按照您列出的任何順序。 – Raptor 2013-03-05 04:34:30

+0

我知道。閱讀鏈接示例。形式語法可以按任意順序。引用:*規範順序:在值的形式語法中出現的順序* – Raptor 2013-03-05 04:40:02

+0

@ShivanRaptor雅我現在明白你的觀點。對不起,這是一個小白菜。我正在消除這一點。 – 2013-03-05 04:45:31

0

你應該使用什麼寬度? 圖像的寬度是多少? 212px或23%?您目前正在定義/使用兩種...