IE9表格异常多了一个单元格、IE9大表格异常、Internet Explorer 9 not rendering table cells properly

original: http://stackoverflow.com/questions/5805956/internet-explorer-9-not-rendering-table-cells-properly

question:

My website has always run smoothly with IE8, IE7, FF, Chrome and Safari. Now I’m testing it on IE9 and I’m experiencing a strange problem: in some pages, some tabular data renders incorrectly.

The HTML source is correct and all, and the row giving the problem changes every time I refresh the page (to tell the truth, the problem itself appears only in some refresh, not all).

Using the F12 Tool of IE, the table structure appears correct, there should be no empty TD after the TD containing M08000007448, but still it renders like this.

Moreover, if I use the F12 tool, with “select element by click” tool in the toolbar, and I try to click on the empty space between M08000007448 and 19 , it selects the TR, not a “hidden td”.

I’m having this table rendering problem also in some other table in the application, anyone experiencing something like this? It happens only in IE9 🙁

I don’t know if it’s important, but the page is made with ASPNET (webforms) and use Jquery and some other JS plugin.

I tried to save the page (with images) and open it in local with IE9, but the problem never occurs. (Of course I checked all the table structure and it’s ok. Header and all rows have the eact same number of TD’s, with the right number of colspan when necessary).

answer:

 

enter image description hereI have exactly the same problem as well. you may want to read thishttps://connect.microsoft.com/IE/feedback/details/649949/innerhtml-formatting-issues-on-very-large-tables

YOu can remove the space inbetween td by using javascript if your html is returned from ajax, then from the response, you replace it with