【发布时间】:2016-06-22 19:39:39
【问题描述】:
我试图在 Bootstrap 中添加一些半径来标记。但是我尝试了所有方法,我无法添加。如果您想了解更多详细信息,请告诉我您想学习什么。顺便说一句,我尝试将半径添加到 <thead> 内的 <tr> 标签,但也没有用。这是我的代码:
HTML
<table class="table">
<thead>
<tr>
<th>Sıra</th>
<th>İsim</th>
<th>Altın</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">1</th>
<td><img src="https://minotar.net/helm/CmJustice/20"> CmJustice</td>
<td>123123</td>
</tr>
<tr>
<th scope="row">2</th>
<td><img src="https://minotar.net/helm/CmJustice/20"> CmJustice</td>
<td>123123</td>
</tr>
<tr>
<th scope="row">3</th>
<td><img src="https://minotar.net/helm/CmJustice/20"> CmJustice</td>
<td>124123123</td>
</tr>
<tr>
<th scope="row">1</th>
<td><img src="https://minotar.net/helm/CmJustice/20"> CmJustice</td>
<td>123123</td>
</tr>
<tr>
<th scope="row">2</th>
<td><img src="https://minotar.net/helm/CmJustice/20"> CmJustice</td>
<td>123123</td>
</tr>
<tr>
<th scope="row">3</th>
<td><img src="https://minotar.net/helm/CmJustice/20"> CmJustice</td>
<td>124123123</td>
</tr>
<tr>
<th scope="row">1</th>
<td><img src="https://minotar.net/helm/CmJustice/20"> CmJustice</td>
<td>123123</td>
</tr>
<tr>
<th scope="row">2</th>
<td><img src="https://minotar.net/helm/CmJustice/20"> CmJustice</td>
<td>123123</td>
</tr>
<tr>
<th scope="row">3</th>
<td><img src="https://minotar.net/helm/CmJustice/20"> CmJustice</td>
<td>124123123</td>
</tr>
<tr>
<th scope="row">3</th>
<td><img src="https://minotar.net/helm/CmJustice/20"> CmJustice</td>
<td>124123123</td>
</tr>
</tbody>
</table>
CSS
thead {
background-color: #E0E0E0;
border: 3px;
border-color: #E0E0E0;
border-radius: 100px;
}
【问题讨论】:
-
为什么我觉得这个问题只是在这里问stackoverflow.com/questions/37963524/…
-
您需要将border-radius 添加到
th而不是thead -
但我希望 标签是圆角的。不是每一个你必须通过前面的第一个和最后一个来完成。
标签: html css twitter-bootstrap-3