jQuery and Bootstrap Expandable Table Row Plugin
Add-ons

Plugin Description: The bootstrap tableexpable table plugin allows each row to be expanded or collapsed through configuration. When a row is expanded, additional information can be displayed.
Usage
1. To use this expandable table plugin, you need to include the relevant jQuery and Bootstrap files.
1 2 3 4 5 6 7 | <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> <link rel="stylesheet" href="css/bootstrap-table-expandable.css"><!-- INCLUDES --><link rel="stylesheet" href="css/bootstrap-table-expandable.css"><script src="js/bootstrap-table-expandable.js"></script> |
2. The following is the basic HTML structure.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | <table > <thead> <tr> <th>Country</th> <th>Population</th> <th>Area</th> <th>Official languages</th> </tr> </thead> <tbody> <tr> <td>United States of America</td> <td>306,939,000</td> <td>9,826,630 km2</td> <td>English</td> </tr> <tr> <td colspan="5"> <!-- CONTENT --> </td> </tr> </tbody></table> |
3. For details, refer to index.html.
评论