0
我想使用jQuery的floatThead插件。看起来有些失踪。我通读了教程。任何人都可以帮助我。我附上一个JSFiddle。帮助赞赏。使用jquery floatthead修复了HTML标头。
<div class="wrapper">
<table class="table demo1 table-bordered table-striped">
<thead> <tr> <th><a href="#" id='demoHeader1'>Header 1</a></th>
<th><a href="#" id='demoHeader2'>Header 2</a></th> <th><a href="#" id='demoHeader3'>Header...3</a></th> </tr> </thead>
<tbody>
<tr> <td>Cell Content 1</td> <td>Cell Content 2</td> <td>Cell Content 3</td> </tr>
<tr> <td>More Cell Content 1</td> <td>More Cell Content 2</td> <td>More Cell Content 3</td> </tr>
<tr> <td>Even More Cell Content 1</td> <td>Even More Cell Content 2</td> <td>Even More Cell Content 3</td> </tr>
<tr> <td>And Repeat 1</td> <td>And Repeat 2</td> <td>And Repeat 3</td> </tr> <tr> <td>Cell Content 1</td> <td>Cell Content 2</td> <td>Cell Content 3</td> </tr>
<tr> <td>More Cell Content 1</td> <td>More Cell Content 2</td> <td>More Cell Content 3</td> </tr>
<tr> <td>Even More Cell Content 1</td> <td>Even More Cell Content 2</td> <td>Even More Cell Content 3</td> </tr>
<tr> <td>And Repeat 1</td> <td>And Repeat 2</td> <td>And Repeat 3</td> </tr>
<tr> <td>Cell Content 1</td> <td>Cell Content 2</td> <td>Cell Content 3</td>
</tr> <tr> <td>More Cell Content 1</td> <td>More Cell Content 2</td> <td>More Cell Content 3</td> </tr>
<tr> <td>Even More Cell Content 1</td> <td>Even More Cell Content 2</td> <td>Even More Cell Content 3</td> </tr>
</table>
https://jsfiddle.net/otyy8svy/
预期的行为是什么?你是否收到任何错误讯息? –