Problems tables and IE
I have a situation with IE and a table that I am inserting from a XML document sent to it by a server, I don't understand why i can't see the table in IE but in the other browsers i can.
<element id='addCSS' name='reply'>
<div id='appendCSS' main='true' father='@style_div'>
<table border='1' width="100%" >
<col align="left" />
<col align="left" />
<tr>
<th>CSS</th>
<th>Seleccionar</th>
</tr>
</table>
<button id='updateCSS' father='@appendCSS'>Ok</button>
</div></element>
I ex开发者_Python百科tract from the element the div and append it to another area, but I can't see the table. This only happens with a table, everything else is fine.
The html looks fine, and displays in my version of IE. Maybe the problem is with the JavaScript that extracts and inserts it. Could you please post that. Best show an example of ALL the code that reproduces the problem.
I inserted your code into IE7 and it worked - displayed the table.
You might have some other things that break the code and IE doesn't work.
IE reqiures <tbody>
tag
IE table format is
<table>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
</table>
This creates a 2 row, 2 column table.
精彩评论