Jquery 引导表动态更改表高度
我正在使用1.6版的引导表插件。 我想动态改变桌子的高度-可能吗?我不知道该怎么做Jquery 引导表动态更改表高度,jquery,twitter-bootstrap-3,bootstrap-table,Jquery,Twitter Bootstrap 3,Bootstrap Table,我正在使用1.6版的引导表插件。 我想动态改变桌子的高度-可能吗?我不知道该怎么做 <div class="main"> <button id="resetView" class="btn btn-default">Reset View</button> <table id="table" data-toggle="table" data-url="/gh/get/response.json/
<div class="main">
<button id="resetView" class="btn btn-default">Reset View</button>
<table id="table"
data-toggle="table"
data-url="/gh/get/response.json/wenzhixin/bootstrap-table/tree/master/docs/data/data1/"
data-height="200">
<thead>
<tr>
<th data-field="name">Name</th>
<th data-field="stargazers_count">Stars</th>
<th data-field="forks_count">Forks</th>
<th data-field="description">Description</th>
</tr>
</thead>
</table>
工作小提琴
最后,它开始工作了
$('#table').bootstrapTable( 'resetView' , {height: 200} );
$('#table').bootstrapTable( 'resetView' , {height: 200} );