Tables are displayed incorrectly in HTML pages in Internet Explorer 8


When you view an HTML page that contains tables in Windows Internet Explorer 8, you find that there are several columns missing. However, the tables are displayed correctly in Windows Internet Explorer 7.


This issue occurs because document compatibility for Internet Explorer 8 is set to Internet Explorer 7 Standards mode. This mode is the default setting. This issue does not occur when document compatibility is set to Internet Explorer 8 Standards mode.


Security update information

To resolve this problem, install the most current cumulative security update for Internet Explorer. To install the most current updates, visit the following Microsoft Web site:

For more technical information about the most current cumulative security update for Internet Explorer, visit the following Microsoft Web site:

Note This update was first included in security update 978207 (MS10-002).
For more information, click the following article number to view the article in the Microsoft Knowledge Base:

978207 MS10-002: Cumulative security update for Internet Explorer

More Information

For more information about document compatibility in Internet Explorer 8, visit the following Microsoft Developer Network (MSDN) Web site:

How to reproduce the problem

Consider the following sample page:
<HTML><TABLE WIDTH="100%" border=1 cellSpacing=0 cellPadding=0>
<COL style="WIDTH: 50%">
<COL style="WIDTH: 50%">
<TD colSpan=5 ></TD>
<TD style="padding:6px;">2<INPUT style="position:absolute;top:-7000" value=2 /></TD>
<TD style="padding:6px;">3 Long long long long text</TD>
<TD style="padding:6px;">
<TABLE style="table-layout:fixed"><TBODY><TR><TD>4</TD></TR></TBODY></TABLE>
<TD style="padding:6px;">
<TABLE style="table-layout:fixed"><TBODY><TR><TD>5</TD></TR></TBODY></TABLE>
Save this source as an .html file, and then open the file in Internet Explorer 8. Although the table in the source has five columns, you see only three columns. However, if you open the file in Internet Explorer 7, you see all five columns.

Artikel-id: 975170 - Laatst bijgewerkt: 22 jan. 2010 - Revisie: 1