我的背景圖像出現在Chrome和Firefox,但不是在IE 8 我的網站是www.burodsin.com第一網頁上的標誌。背景圖像不顯示在IE,但會出現在Firefox
在CSS背景下,我加入
.bclass:link {
background-image: url('images/buroimagenew.jpg');
position: absolute;
width: 40px;
height: 97px;
display: block;
z-index:12;
}
我的背景圖像出現在Chrome和Firefox,但不是在IE 8 我的網站是www.burodsin.com第一網頁上的標誌。背景圖像不顯示在IE,但會出現在Firefox
在CSS背景下,我加入
.bclass:link {
background-image: url('images/buroimagenew.jpg');
position: absolute;
width: 40px;
height: 97px;
display: block;
z-index:12;
}
在網頁上,問題是,你正在定義repeat
性質no-repeat
上background-image
,這樣
background-image: url('images/buroimagenew.jpg') no-repeat;
/*^This is NOT a background-image accepted value */
要麼像
單獨的屬性background-image: url('images/buroimagenew.jpg');
background-repeat: no-repeat;
或寫正確速記規則。
background: url('images/buroimagenew.jpg') no-repeat;
下面是不同的背景屬性是:
background
background-image
background-repeat
background-color
background-clip
background-attachment
background-origin
background-position
因此,作爲分離:
background-image: url('urlofyourimage.jpg');
background-repeat: no-repeat;
只有我在鏈接中看到的是BLACK !!!!!! – Starx 2012-03-18 09:04:15
的問題和網頁上的代碼是不同的。 – Starx 2012-03-18 09:14:44