我使用的是Bootstrap表格类。 默认的边框颜色应该是灰色/银色 - 我想。
但我希望将边框颜色更改为红色,但我无法实现它。
这是我的代码
CSS
.table {
border: red solid 1px !important;
}
HTML:表格
<table class="table table-bordered piechart-key ">
<thead >
<th></th>
<th></th>
<th> Item Summary</th>
<th> Item List</th>
</thead>
<tbody>
<tr>
<td width="30"></td>
<td width="200">
> 50% of students answered these items correctly
</td>
<td width="50">5/25</td>
<td width="100">5,10,15,19,23</td>
</tr>
<tr>
<td width="30"></td>
<td width="200">50% up to 75% of students answered these items correctly</td>
<td width="50">8/25</td>
<td width="100">3,7,11,13,14,16,21,22</td>
</tr>
<tr>
<td width="30"></td>
<td width="200">≥ 75% of students answered these items correctly</td>
<td width="50">12/25</td>
<td width="100">1,2,4,6,8,9,12,17,18,20,24,25</td>
</tr>
</tbody>
</table>
如何最佳地更改Bootstrap表格的边框颜色?