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/
預期的行爲是什麼?你是否收到任何錯誤訊息? –