End*_*ave 4 html css twitter-bootstrap
我在bootstrap中做一些基本的桌面样式,并将单元格边框变为深蓝色.没有什么花哨的和完全标准的桌子,但我不能为我的生活弄清楚如何设置桌头和桌子身体之间的边界.我已经尝试了一切让这条线看起来和其他一切一样.

任何人都可以告诉我如何创建一个带有非灰色单元格边框的引导表.我的表也很敏感,但似乎没什么区别
.table td, .table th {
border: 1px solid #2980B9;
}
.table{
border: 1px solid #2980B9;
}
<div class="table-responsive">
<table class="table">
<thead>
<tr>
<th>1</th>
<th>Table cell</th>
<th>Table cell</th>
<th>Table cell</th>
<th>Table cell</th>
<th>Table cell</th>
<th>Table cell</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
</tr>
<tr>
<td>2</td>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
</tr>
<tr>
<td>3</td>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
</tr>
</tbody>
</table>
</div>
Run Code Online (Sandbox Code Playgroud)
Pat*_*fey 19
你应该使用bootstrap使用的选择器如下:http://jsfiddle.net/4tdS2
你的CSS可能看起来像这样:
.table { border: 1px solid #2980B9; }
.table thead > tr > th { border-bottom: none; }
.table thead > tr > th, .table tbody > tr > th, .table tfoot > tr > th, .table thead > tr > td, .table tbody > tr > td, .table tfoot > tr > td { border: 1px solid #2980B9; }
Run Code Online (Sandbox Code Playgroud)