我有一個<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