3

Is there a way to deactivate the hover state on table rows in Bootstrap Table?

It automatically set's it there...

4

1 回答 1

4

表的默认 CSS 类是'table table-hover'. 只需删除table-hover类即可删除效果。

您可以全局删除所有表格的悬停效果:http: //jsfiddle.net/e3nk137y/1437/

$.extend($.fn.bootstrapTable.defaults, {classes:'table'});

对于单个表,您可以设置data-classes="table":http: //jsfiddle.net/e3nk137y/1436/

<table id="table" data-classes="table">
于 2015-04-30T09:32:20.060 回答