jquery插件解决表格 鼠标经过变色 头部突出显示
XML/HTML Code
- <table id="table1">
- <thead>
- <tr>
- <th>Period</th>
- <th>Full Board</th>
- <th>Half Board</th>
- <th>Bed and Breakfast</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>01/10/12 - 02/10/12</td>
- <td>20 €</td>
- <td>30 €</td>
- <td>40 €</td>
- </tr>
- <tr>
- <td>03/10/12 - 04/10/12</td>
- <td>40 €</td>
- <td>50 €</td>
- <td>60 €</td>
- </tr>
- <tr>
- <td>05/10/12 - 06/10/12</td>
- <td>70 €</td>
- <td>80 €</td>
- <td>90 €</td>
- </tr>
- </tbody>
- </table>
JavaScript Code
- <script>
- $(window).ready(function () {
- $('#table1').ReStable();
- $('#table2').ReStable({rowHeaders: false});
- $('#table3').ReStable({keepHtml: true, rowHeaders: false});
- });
- </script>
原文地址:http://www.freejs.net/article_jquerywenzi_491.html