【发布时间】:2017-11-22 20:05:07
【问题描述】:
据我了解,表格可以像其他元素一样具有 webkit 边框半径样式:
HTML
<table class="list-table">
<thead>
<tr>
<th>header</th>
</tr>
</thead>
<tbody>
<tr>
<td>tables are misunderstood</td>
</tr>
</tbody>
</table>
CSS
.list-table {
width: 100%;
padding: 0;
margin: 0;
text-align: center;
vertical-align: middle;
border: 4px solid red;
border-collapse: collapse;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
}
...那我哪里错了?现场演示请看这里:http://bootply.com/79469#
【问题讨论】:
-
与表格展示有关。将
.list-table设置为display: block;。
标签: html css html-table rounded-corners