0

我正在尝试为 . 但它无法正常工作。在 Firefox 和 Chrome 中,图像出现了,但在 Internet Explorer Image not Showing 中。我在下面附上了我的站点链接和相关的css代码,任何人都可以帮助解决这个问题。在主页实时聊天部分。

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

4 回答 4

0

你能试着去掉顶部吗?

 background: white url('../banner/Chat-Banner.png') no-repeat;
于 2012-11-20T15:13:36.707 回答
0

在您的 IE8 条件 css 上有一个白色背景

<!--[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

于 2012-11-20T15:14:47.237 回答
0

您的样式表似乎没有加载。

将 2 个标签替换为这些标签,并使用相对 url:

<link href="css/style.css" rel="stylesheet" type="text/css">
<link href="css/directory.css" rel="stylesheet" type="text/css">
于 2012-11-20T15:15:21.193 回答
0

尝试编辑这行代码

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

background:  url('../banner/Chat-Banner.png') center top no-repeat #fff ;
于 2012-11-20T15:22:12.810 回答