需要引入的文件:
bootstrapTable基本引入文件:
bootstrap-3.3.4.css、bootstrap-table.min.css、jquery-3.5.1.min.js、bootstrap-3.3.7.min.js、bootstrap-table.min.js
表头调整列宽需要再引入:
colResizable-1.6.js
代码:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>bootstrapTable表头调整列宽</title>
<link rel="stylesheet" href="./lib/css/bootstrap-3.3.4.css">
<link rel="stylesheet" href="./lib/css/bootstrap-table.min.css">
<script src="./js/jquery-3.5.1.min.js"></script>
<script src="./lib/js/bootstrap-3.3.7.min.js"></script>
<script src="./lib