我实际上想在一张桌子内绕过thead的角落。就我而言,这似乎是不可能的。我几乎尝试了一切,但我无法让它发挥作用。
问题是我基本上有一张桌子,它的桌子有一种特殊的颜色,比如说黑色,我想通过圆角来给它一点圆角。
谁能告诉我这怎么可能?
这是我到目前为止尝试过的 jsFiddle:
HTML:
<table>
<thead>
<tr>
<th>First</th>
<th>Second</th>
<th>Third</th>
</tr>
</thead>
</table>
CSS:
table {
margin: 0px auto;
clear: both;
width: 100%;
border: 1px solid white;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
color: white;
}
table thead {
background: black;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
}