bootstrap-table如何设置首行变色,其他行不变色
去掉table-hover样式,自己写个样式加到第一行就行了
<style>tbody tr.myhover:hover th,tr.firstrow:hover td{background:#f5f5f5}</style>
<table class="table table-bordered table-striped ">
<tr class="myhover"><th>姓名</th><th>性别</th><th>年龄</th></tr>
<tr><td>姓名</td><td>性别</td><td>年龄</td></tr>
<tr><td>姓名</td><td>性别</td><td>年龄</td></tr>
</table>
可以参考一下Bootstrap的API,http://www.runoob.com/bootstrap/bootstrap-tutorial.html
.table>tr:first-child{background-color:"#21e0bf"}