开发者

IE7 showing background-color in div with bg img despite stating 'transparent'

I'm trying to get my site to behave in IE7 (how much I am starting to hate IE I can't even begin to explain). Here's the site:

http://tiger.directrouter.co.uk/~millbank/?page_id=21

As you can see, the quotes have a grey background in IE7 but not in other browsers. Any idea how开发者_Go百科 I can get around this? The quotes aren't fading in when you first visit the page like they should be (this works in other browsers).

Thanks,

osu


Just remove this

background-color: rgb(77, 77, 79);

from all the 5 divs. When you remove this in-line style, the grey background is removed in IE7. Also it is properly fading as it does in IE9.


You might want to try taking out the background-color in the conditional CSS for IE7 and less.

<!--[if lte IE 7]>
    <style type="text/css">
        #quotes {
            background-color: #010C3D;<!--- REMOVE THIS LINE
            background-image:none;
        }
        .qdown, .qup {
            background-image:none;
        }
        .quote-text {
            padding:20px 20px 0 20px;   
        }
    </style>
<![endif]-->


You have some conditionals css for IE within the "quotes" div, don't you?

Try to move them all to or move them below the "quotes" div.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜