请帮助我在下面的代码中使用 jquery.FloatThread 插件的说明
#container{
}
<div id="container">
<table border="1">
<tr>
<th width=100 >A</th> <th width=100>B</th> <th width=150>C</th>
</tr>
<tbody >
<tr>
<td width=100> dfg</td>
<td width=100> dfg</td>
<td width=150> fg</td></tr>
<tr>
<td> ere</td>
<td> fgrty</td>
<td> dfd</td></tr>
<tr>
<td> dfd</td>
<td> dfet</td>
<td> dfdf</td></tr>
<tr>
<td> xzcvc</td>
<tr>
</table>
</div>
我没有找到在我的代码中的以下代码中实现“table.demo”的位置
var $table = $('table.demo');
$table.floatThead();
最佳答案
将包含 TH 的行放在 THEAD block 中。
I didn't get where to implement 'table.demo' found in below code in my code
使用 $("#yourTableID").floatThead(); 运行它;
关于jquery - 如何在我的代码中实现 jquery.FloatThread 插件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29092346/