Css IE 8表格填充问题
我创建了一个具有以下代码的表:Css IE 8表格填充问题,css,internet-explorer,firefox,html-table,Css,Internet Explorer,Firefox,Html Table,我创建了一个具有以下代码的表: <table class="details resultTable"> <thead class="details"> <tr class="details"> <th class="details headerText">Heading 1</th> <th class="details headerText">Heading 2</th> </tr> </th
<table class="details resultTable">
<thead class="details">
<tr class="details">
<th class="details headerText">Heading 1</th>
<th class="details headerText">Heading 2</th>
</tr>
</thead>
<tbody class="imu-details-view">
<tr class="details">
<td class="details">Text 1</td>
<td class="details">Text 2</td>
</tr>
</tbody>
</table>
现在我遇到的问题是,在Firefox中,表是这样的:
然后在IE 8/9中,它看起来是这样的:
有人能解释一下我如何使IE表看起来像Firefox表吗?试试下面的代码。将align=left添加到标记
<th align="left" class="details headerText">Heading 1</th>
<th align="left" class="details headerText">Heading 2</th>
标题1
标题2
是否使用CSS重置?看看这里:试试这个:
<th align="left" class="details headerText">Heading 1</th>
<th align="left" class="details headerText">Heading 2</th>