如何显示所有行?
How do I show all rows?
我不想要分页...或可滚动的 table。我不想指定高度,但如果您不指定高度,它会默认为某个高度。
我只想要带排序选项的常规旧 table。
(我正在使用 bootstrap-table)
只能设置sortable
列选项,不能设置height
选项:
<table data-toggle="table"
data-url="your-json-url">
<thead>
<tr>
<th data-field="id" data-sortable="true">ID</th>
<th data-field="name" data-sortable="true">Name</th>
<th data-field="price" data-sortable="true">Price</th>
</tr>
</thead>
</table>
我不想要分页...或可滚动的 table。我不想指定高度,但如果您不指定高度,它会默认为某个高度。
我只想要带排序选项的常规旧 table。
(我正在使用 bootstrap-table)
只能设置sortable
列选项,不能设置height
选项:
<table data-toggle="table"
data-url="your-json-url">
<thead>
<tr>
<th data-field="id" data-sortable="true">ID</th>
<th data-field="name" data-sortable="true">Name</th>
<th data-field="price" data-sortable="true">Price</th>
</tr>
</thead>
</table>