tableHeadFixer实现固定表格头尾或列效果代码
代码语言:html
所属分类:表格
代码描述:tableHeadFixer实现固定表格头尾或列效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>BFW NEW PAGE</title> <script id="bfwone" data="dep=jquery.17&err=0" type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/bfwone.js"></script> <script type="text/javascript"> bready(function() { use(["tableHeadFixer", "bootstrap.4.3.1.min"], function() { $("#fixTable").tableHeadFixer({'right' : 1, 'foot' : true, 'head' : true}); //固定头尾及最右边一列 }); }); </script> <style> #parent { height: 300px; } #fixTable { width: 1800px !important; } </style> </head> <body> <div id="parent"> <table id="fixTable" class="table"> <thead> <tr> <th>Ano</th> <th>Jan</th> <th>Fev</th> <th>Mar</th> <th>Abr</th> <th>Maio</th> <th>Total</th> </tr> </thead> <tbody> <tr> <td>2010</td> <td>100.00</td> <td>100.00</td> <td>100.00</td> <td>100.00</td> <td>100.00</td> <td>500.00</td> </tr> <tr> <td>2011</td> <td>110.00</td> <td>110.00</td> <td>110.00</td> <td>110.00</td> <td>110.00</td> <td>550.00</td> </tr> <tr> <td>2012</td> <td>110.00</td> <td>110.00</td> <td>110.00</td> <td>110.00</td> <td>110.00</td> <td>550.00</td> </tr> <tr> <td>2012</td> <td>110.00</td> <td>110.00</td> <td>110.00</td> <td>110.00</td> <td>110.00</td> <td>550.00</td> </tr> <tr> <td>2012</td> <td>110.00</td> <td>110.00</td> <td>110.00</td> <td>110.00</td> <td>110.00</td> <td>550.00</td> </tr> <tr> <td>2012</td> <td>110.00</td> <td>110.00</td> <td>110.00</td> <td>110.00</td> <td>110.00</td> <td>550.00</td.........完整代码请登录后点击上方下载按钮下载查看
网友评论0