表在IE 11和Safari中无法正确呈现

时间:2014-02-12 23:14:40

标签: javascript css internet-explorer xslt html-table

我有一个xsl页面,用于呈现TON数据的表。问题是由于某种原因,表格无法正确呈现。

<table class="searchresult" style="width:720px;">
<colgroup>
<col style="width:60px;">
<col style="width:100px;">
<col style="width:100px;">
<col style="width:60px;">
<col style="width:220px;">
<col style="width:60px;">
<col style="width:120px;">
</colgroup>
<thead>
<tr>
<td colspan="4" style="font-weight:bold;">MATLOCK, HARRY<input type="hidden" name="c03-hidden-name__1"><input type="hidden" name="c03-line-color__1"><input name="c03-name-select__1" id="c03nameselect__1" type="hidden"></td>
<td>Record Type: Attorney</td>
<td colspan="2">Status: Active</td>
</tr>
<tr>
<td colspan="4"></td>
<td colspan="3">Company/Firm: </td>
</tr>
<tr>
<td colspan="4"></td>
<td>Work Number: </td>
<td colspan="2">Fax: </td>
</tr>
<tr>
<td colspan="4">xxxxxxxx</td>
<td>Bar Code: </td>
<td colspan="2"></td>
</tr>
</thead>
</table>

最终看起来像http://www.weird-girls.com/wp-content/uploads/2014/02/ie-render-incorrectly1.png

当标题与身体数据相关时,它看起来很好。 http://www.weird-girls.com/wp-content/uploads/2014/02/IE-render-properly1.png

以下是包含tbody数据的代码......

<table class="searchresult" style="width:720px;">
<colgroup>
<col style="width:60px;">
<col style="width:100px;">
<col style="width:100px;">
<col style="width:60px;">
<col style="width:220px;">
<col style="width:60px;">
<col style="width:120px;">
</colgroup>
<thead>
<tr >
<td colspan="4" style="font-weight:bold;">xxxx, xxxxxx xxxxx<input type="hidden" name="c03-hidden-name__1" value="*"><input type="hidden" name="c03-line-color__1" value="DDDDDD"><input name="c03-name-select__1" id="c03nameselect__1" type="hidden"></td>
<td>Record Type: Person</td>
<td colspan="2">DL No: TX:XXXXXXXXXX (CDL) </td>
</tr>
<tr >
<td colspan="4">XXXX XXXXXXX</td>
<td>Birth Place:</td>
<td colspan="2">SSNO:</td>
</tr>
<tr >
<td colspan="4"></td>
<td>Birth Date: 07-12-1984</td>
<td colspan="2">Status: Alive</td>
</tr>
<tr>
<td colspan="4">AUSTIN TX 78704</td>
<td>Nationality: </td>
<td colspan="2" style="text-align:right;font-weight:bold;">Total Due: $317.00</td>
</tr>
</thead>
<tbody>
<tr style="font-size:14px;">
<td>SRCH</td>
<td>5521816513<input type="hidden" name="c03-hidden-cause__2" value="*"><input type="hidden" name="c03-line-color__2" value="DDDDDD"><input name="c03-cause-select__2" id="c03causeselect__2" type="hidden"></td>
<td></td>
<td>PRL</td>
<td></td>
<td></td>
<td style="text-align:right;">$0.00</td>
</tr>
</tbody>
</table>

我在这里错过了一些超级简单的东西吗?

0 个答案:

没有答案