English 中文(简体)
IE color <dt> spill
原标题:

I have made a page here

the DT title is underline red with text white... in firefox everything is fine... but the dt spill in IE... why ?

here is a VIEW of the problem !

Here is the perfect example of WHAT is the problem

alt text http://api.browsershots.org/png/original/66/662d9cbb543d3b95346af83de8c062fd.png

最佳回答
<ul>
    <h1>Nos consommations</h1>

You can t just put any old element inside any other. <h1>, <h2> and the <dt>​s are quite invalid as children of <ul> and the browser will try to cope by fixing up your markup, and not all browsers deal with mistakes in the same way.

What may be happening with IE here is that it is ‘fixing’ the <li> following the red-backgrounded-<dt> by assuming you meant to have a <ul> inside the <dt> itself. Hence the red background expands to cover the rest of the list, and the font colour inherits.

To stop this kind of thing happening, use the HTML validator.

问题回答

暂无回答




相关问题
Image rendered with wrong colors in IE8

I have a gradient image as a PNG (no transparency) in a web-page. By taking a screenshot of Chrome showing the page and cropping the image from the page, I see the exact same colors are drawn as the ...

Determine Mobile Internet Explorer version

I need to determine the version of Mobile Internet Explorer on a Windows Mobile 6.1 device. So that I can report the same user-agent string as is being used by Mobile Internet Explorer. The user-...

CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

Internet Explorer only part loading JavaScript/CSS

I m having trouble with my local development environment where IE (6 through to 8) is only part loading JavaScript/CSS files. It throws random errors at random places in jquery.min.js every time I ...

IE doesn t run Javascript when you click back button

I ve built a shop with tons of JS running. One of the pieces of the cart, is a zip code field which is required to calculate shipping cost. This works fine going through the cart. Now clicking ...

热门标签