这是我当前代码的示例:jsfiddle
问题是,表格标题和正文之间的深灰色线被单元格的右边距切割。我想在列之间有一个边界,在标题和正文表之间有一个不间断的边距。
这是HTML:
<table id="prazo">
<thead>
<tr>
<th>month</th>
<th> val </th>
<th> val </th>
<th> val </th>
<th> val </th>
<th> val </th>
<th>val</th>
</tr>
</thead>
<tbody>
<tr class="srow">
<td>January</td>
<td>$100</td>
<td>$100</td>
<td>$100</td>
<td>$100</td>
<td>$100</td>
<td>$100</td>
</tr>
<tr>
<td>January</td>
<td>$100</td>
<td>$100</td>
<td>$100</td>
<td>$100</td>
<td>$100</td>
<td>$100</td>
</tr>
<tr class="srow">
<td>January</td>
<td>$100</td>
<td>$100</td>
<td>$100</td>
<td>$100</td>
<td>$100</td>
<td>$100</td>
</tr>
</tbody>
</table>
和CSS:
#prazo {
font-family: 'Bitter', serif;
width: 100%;
border-spacing:0;
border-collapse:collapse;
}
#prazo thead tr{
height: 50px;
background-color: #ffffff;
font-weight:bold;
border-bottom: 3px solid #7d7d7d !important;
}
#prazo td, th {
padding-left: 10px;
padding-right: 10px;
font-size: 14px;
height: 30px;
background-color: #ffffff;
border-right: 3px solid #f6f6f6;
}
.srow td {
background-color: #f2f2f2 !important;
}
#prazo th {
font-size: 16px;
}