基于jQuery、bootstrap展开表格行插件
插件特效

插件描述:bootstrap tableexpable 表格插件通过设置可以使每一行都具有展开和收缩的功能,行展开时可以显示额外的信息.
使用方法
1.使用这个可扩展表格插件要引入jQuery和Bootstrap的相关文件。
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.以下是HTML基本结构
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.详情可参考index.html
评论