我有一个<table>
与<thead>
和<th>
标签。HTML表格THEAD和TH背景在IE
两个<thead>
和<th>
标签有背景图像。重复<thead>
的背景图像,并且<th>
的背景图像位于单元的左侧。
在Firefox它工作正常,但在IE(我的IE是第7版)不显示的<thead>
的背景图像。如果我删除<th>
的背景图像,则会出现<thead>
的背景图像。
什么建议吗?
编辑: 这里是我的简化代码:
<table>
<thead>
<tr>
<th>AAAA</th>
<th>BBBB</th>
<th>CCCC</th>
</tr>
</thead>
<tbody>
<tr>
<td>1111</td>
<td>1111</td>
<td>1111</td>
</tr>
</tbody>
</table>
<style>
thead {
background: url(PATH TO MY IMAGE) repeat-x center /*this image is not displayed in IE*/
}
th {
background: url(PATH TO MY IMAGE) no-repeat left center
}
</style>
这些都不做了我的IE7任何东西,设置'显示:block'完全错位IE7以外的显示(其中,它没有任何效果可言)。 – 2010-11-13 06:11:29