我一直在争取这一段时间,无法弄清楚为什么我会在IE7中看到背景的一个像素(其他浏览器正常工作)。背景中的一个像素显示在IE7中的表格
下面是一个简单的例子,尝试在IE7:
链接的jsfiddle:http://jsfiddle.net/PstEk/
<html>
<head>
<style>
.test {
border-width: 0px;
border-spacing: 0px;
border-style: outset;
border-color: red;
border-collapse: collapse;
background-color: blue;
}
.test th{
border-width: 0px;
padding: 0px;
border-style: none;
border-color: red;
background-color: #fff5ee;
}
.test td {
border-width: 0px;
padding: 0px;
border-style: none;
border-color: red;
background-color: #e1edf3;
}
</style>
<body>
<table class="test">
<tr>
<th>Test test</th>
<th>Test test</th>
<th>Test test</th>
<th>Test test</th>
<tr>
<tr>
<td>Test test</td>
<td>Test test</td>
<td>Test test</td>
<td >Test test </td>
<tr>
<tr>
<td>Test test</td>
<td>Test test</td>
<td>Test test</td>
<td>Test test</td>
<tr>
</table>
</body>
</html>
您没有关闭标签? – Christophe 2012-02-24 18:08:43
非常感谢,这太愚蠢了,花了半天的时间试图找出答案! – 2012-02-24 18:09:45
@Christophe:你应该做出答案! – Jawad 2012-02-24 18:14:08