.table-hover > tbody > tr:hover > td,
.table-hover > tbody > tr:hover > th {
color:blue;
cursor: pointer;
}
<table class="table-hover"
id="dataTable"
data-class="table table-hover"
data-sort-name="createTime"
data-sort-order="desc"
data-query-params="listParams"
data-toggle="table"
data-url="listData"
data-side-pagination="server"
data-pagination="true"
>
<thead>
<tr>
<th data-field="userId" data-align="center">用户id</th>
</tr>
</thead>
</table>
效果:
鼠标没有悬停的时候:
鼠标悬停以后: