开发者

Weird CSS issue involving inline overrides in IE

http://searchdatacenter.techtarget.com/informationCenter/0,296712,sid80_iid371,00.html

On this page the ad on the bottom right with the black background header doesn't pickup the inline styles in IE. So it's the custom grey and black text in IE but the correct black background and white text in Firefox.

The default styles come from a stylesheet....the overrides come inline. Any reason why this isn't being picked up by IE?

Edit: Thanks, missed the overrides come inlinedoctype. Any reason 开发者_开发百科why this isn't being picked up by IE?


The style tag is only valid inside the head section of the page, and the linked stylesheet just above it should be in the head as well. You're lucky what you have works in anything.

If this is difficult to change, your best bet is probably removing your style block and using the style attribute on the div instead:

<div class="cltHeader" style="background-color: black;">
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜