我这里有一些简单的HTML:
<table class="table shipment" id="payItems">
<thead>
<tr>
<th class="sku">Varekode </th>
<th class="productName">Produkt</th>
<th>Pris</th>
<th>Antall</th>
<th style="text-align: right; padding-right: 80px;">Sum</th>
</tr>
</thead>
<tbody>
...content...
</tbody>
</table>还有这个CSS:
table#payItems.table thead th
{
border: 0;
}因为它在一个带有圆角的包装器div中,并且上面的th有一个我想要去掉的上边框,但是th,tr的任何组合,the thead似乎都没有去掉这个边框。
发布于 2010-09-03 19:33:51
通过以下方式解决:
#payItems thead, #payItems tr { border-top: 0; }感谢奕江的启发。
https://stackoverflow.com/questions/3634661
复制相似问题