开发者

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

开发者 https://www.devze.com 2023-03-16 07:01 出处:网络
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:

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

精彩评论

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

关注公众号