A, Bootstrap Table column width drag method
Bootstrap Table draggable columns, where it is used Resizable extension
It requires the introduction of bootstrap-table extension bootstrap-table-resizable.js
This plug-in also depends on colResizable v1.6 (Download: http://www.bacubacu.com/colresizable/ )
<script type="text/javascript" src="js/plugins/bootstrap-table-resizable/colResizable-1.6.js"></script> <script type="text/javascript" src="js/plugins/bootstrap-table/extensions/resizable/bootstrap-table-resizable.js"></script> <script type="text/javascript"> $(function(){ $("#tableId").colResizable({ liveDrag:true, gripInnerHtml:"<div class='grip'></div>", draggingClass:"dragging", resizeMode:'fit' }); }); </script>
Specific seen official documentation of the link bootstrap-table: http://bootstrap-table.wenzhixin.net.cn/zh-cn/extensions/
二、Bootstrap 。。。。