【发布时间】:2016-12-20 07:07:49
【问题描述】:
我在我的应用程序中使用 jquery tablesorter 表。我想为 tbody 和 overflow-y 滚动添加最大高度。
<table id="myTable" class="tablesorter">
<thead>
<tr>
<th>Last Name</th>
<th>First Name</th>
<th>Email</th>
<th>Due</th>
<th>Web Site</th>
</tr>
</thead>
<tbody>
<tr>
<td>Smith</td>
<td>John</td>
<td>jsmith@gmail.com</td>
<td>$50.00</td>
<td>http://www.jsmith.com</td>
</tr>
</tbody>
</table>
我加了
.tablesorter thead{
display:block;
}
.tablesorter tbody{
height: 200px;
overflow-y: auto;
overflow-x: hidden;
display: block ;
}
但它没有采取...有什么办法可以将此功能添加到 tablesort 中?
【问题讨论】:
-
抱歉缺少点(。),它仍然无法正常工作
标签: php html css html-table tablesorter