先上一张图看下
最终效果:
上代码
<!-- Table head -->
<table class="table tableHead">
<thead>
<tr>
<th id="changeName" style="width: 169px;"></th>
<th style="width: 250px;">id</th>
<th style="width: 249px;">姓名</th>
<th style="width: 249px;">性别</th>
<th style="width: 192px;">年龄</th>
<th style="width: 192px;"></th>
</tr>
</thead>
</table>
<!-- Table body -->
<div class="pre-scrollable tableBody">
<table class="table"