Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/40.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Css IE 8表格填充问题_Css_Internet Explorer_Firefox_Html Table - Fatal编程技术网

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>