jQuery mobile plugin for fixing table headers and arbitrary columns (original work)
Add-ons

Plugin description: A jQuery plugin for fixing table headers and arbitrary columns. Only suitable for mobile devices.
Usage
1. Include the files
1 2 3 | <script type="text/javascript" src="table_fixer.js"></script><link rel="stylesheet" type="text/css" href="table_fixer.css" /> |
The stylesheet only controls table styles and can be customized as needed.
2. Add an ID to the <table>, for example:
1 | <table id="table1"> |
3. Call the method to activate it
1 2 3 4 | $(function(){ /* Parameters: table object ID or class, table height, fixed columns (optional) */ table_fixer("#table1",200);}) |
评论