2012-11-20 54 views
0

我想添加背景圖片。但它不能正常工作。在Firefox和Chrome中,圖像出現,但在Internet Explorer圖像中未顯示。我附上了我的網站鏈接和相關的css代碼,任何一個pl都可以幫助解決這個問題。在主頁實時聊天部分。背景圖片不能在IE 8中工作

https://www.autobase.lk/

#slideshow_ad{ 
    width:230px; 
    height:240px; 
    border:thin solid; 
    border-color:#e1e1e1; 
    background: white url('../banner/Chat-Banner.png') no-repeat top; 
    float:right; 
    margin:3px; 
} 

回答

0

對你的病情的CSS背景爲白色IE8

<!--[if IE 8]> 
    <link href='http://www.autobase.lk/css/ie8.css' rel='stylesheet' type='text/css' /> 
    <link href='http://www.autobase.lk/css/directory_ie.css' rel='stylesheet' type='text/css' /> 
<![endif]--> 

您的代碼

#slideshow_ad{ 
    width:230px; 
    height:240px; 
    border:thin solid; 
    border-color:#e1e1e1; 
    background: #fff; 
    float:right; 
    margin:3px; 
} 

去除背景#FFF

0

可以嘗試去除頂部?

background: white url('../banner/Chat-Banner.png') no-repeat; 
0

樣式表不顯示爲裝載。

與這些更換2個標籤,與相對URL:

<link href="css/style.css" rel="stylesheet" type="text/css"> 
<link href="css/directory.css" rel="stylesheet" type="text/css"> 
0

嘗試編輯這行代碼

background: url('../banner/Chat-Banner.png') no-repeat top #fff; 

background: url('../banner/Chat-Banner.png') center top no-repeat #fff ;