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

插件特效
2026-07-26 04:04 3 次浏览 • 0 次下载 2.1KB
基于jQuery、bootstrap展开表格行插件

使用方法

1.使用这个可扩展表格插件要引入jQuery和Bootstrap的相关文件。

1
2
3
4
5
6
7
<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