I have the following HTML & CSS
HTML
<table class="StandardTable">
<thead>
<tr>
<th>A</th>
<th>B</th>
<th>C</th>
<th>D</th>
</tr>
</thead>
<tbody>
<tr>
<td style="width: 25%">A</td>
<td style="width: 25%">B</td>
<td style="width: 25%">C</td>
<td style="width: 25%">D</td>
</tr>
</tbody>
</table>
CSS
.StandardTable {
border: 1px solid #656565;
border-radius: 10px;
-moz-border-radius: 10px;
margin-left: auto;
margin-right: auto;
box-shadow: 10px 10px 5px #888888;
width: 300px;
margin-bottom: 15px;
border-spacing: 0;
}
.StandardTable thead {
border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 5px;
background-color: lightgray;
}
我已经为此创建了jsFiddle。THEAD中的背景总是溢出/超出边框并且不会变圆。
我在IE、FF和chrome中进行了测试。在chrome中最明显,因为溢出发生在边框上方,而在IE和FF中溢出发生在下方。
非常感谢任何帮助解决这个问题(使背景正确停止在边缘周围)。我尝试在TH元素上添加Border-Radius,但没有起作用。