我想在 下面创建一个水平线。以下是我想要实现的目标
我使用以下html标记
创建了表格<table>
<tr>
<th>Table</th>
<th>% of Time Index Used</th>
<th>Rows in Table</th>
</tr>
<tr>
<td>tweet_groups</td>
<td>67</td>
<td>20,488</td>
</tr>
</table>
那么如何添加水平线?
答案 0 :(得分:1)
tr:first-child{ border-bottom: 1px solid #555;}
答案 1 :(得分:1)
table tr:first-child{border-bottom:1px solid #000;}
答案 2 :(得分:1)
th
{
border-bottom: 2px solid #000000;
}