简体   繁体   中英

Background Image Not working in IE 8

I am trying to add background image for the . but It is not working correctly. IN Firefox and Chrome the image came but in Internet Explorer Image not Showing . I have attached my site link and related css code below , can any one pl help to fix this issue. On the home page live chat section.

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;
}

您可以尝试移除顶部吗?

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

Have a white background on your condition css for 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]-->

Your code

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

Remove background #fff

Your stylesheets don't appear to be loading.

replace the 2 tags with these, with relative urls:

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

try editing this line of code

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

to

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM