CSS
.table-striped > tbody > tr:nth-child(1) > td,
.table-striped > tbody > tr:nth-child(1) > th {
background-color: #4289A9;
font-weight:800;
color:white;
font-size:12px;
}
HTML
<table class="table table-striped">
<tr >
<td class="h6" >text change according to css </td>
<td class="h6" >text font style not changed </td>
</tr>
</table>
使用Bootstrap 3.奇怪的是,根据CSS的第一个td
更改但第二个td
字体样式没有改变,CSS缺少什么?