【发布时间】:2014-08-25 13:42:14
【问题描述】:
我为 Bootstrap 表添加了一个 table-curved 类来圆角。
.table-curved {
border-collapse: separate;
}
.table-curved {
border: solid #ccc 1px;
border-radius: 2px;
border-left:0px;
}
.table-curved td, .table-curved th {
border-left: 1px solid #ccc;
border-top: 1px solid #ccc;
}
.table-curved th {
border-top: none;
}
.table-curved th:first-child {
border-radius: 2px 0 0 0;
}
.table-curved th:last-child {
border-radius: 0 2px 0 0;
}
.table-curved th:only-child{
border-radius: 2px 2px 0 0;
}
.table-curved tr:last-child td:first-child {
border-radius: 0 0 0 2px;
}
.table-curved tr:last-child td:last-child {
border-radius: 0 0 2px 0;
}
<table class="table table-curved " id="details">
</table>
但由于某种原因,当我应用它时,顶部有一个较厚的边框。为什么?
【问题讨论】:
标签: html css twitter-bootstrap