[英]CSS & JS - Excel like column resize of table
I have a table that has multiple columns.我有一个包含多列的表。 I want to add the column resize functionality just like that of the excel file tables.
我想添加列调整大小功能,就像 excel 文件表一样。 On resize, only the column width should increase instead of the width of the next columns so that there is a scroll below the table.
在调整大小时,只有列宽应该增加而不是下一列的宽度,以便在表格下方有一个滚动。
I even tried using this plugin but can't achieve what I really need.我什至尝试使用这个插件,但无法实现我真正需要的。 Plugin Demo: http://dobtco.github.io/jquery-resizable-columns/
插件演示: http://dobtco.github.io/jquery-resizable-columns/
You can use this plugin instead: https://www.jqueryscript.net/table/jQuery-Plugin-For-Draggable-Resizable-Table-Columns-colResizable.html您可以改用此插件: https://www.jqueryscript.net/table/jQuery-Plugin-For-Draggable-Resizable-Table-Columns-colResizable.html
This has the functionality you are looking for chekout their demo with resizeMode: 'overflow' https://www.jqueryscript.net/demo/jQuery-Plugin-For-Draggable-Resizable-Table-Columns-colResizable/这具有您正在寻找的功能,使用 resizeMode 检查他们的演示:'overflow' https://www.jqueryscript.net/demo/jQuery-Plugin-For-Draggable-Resizable-Table-Columns-colResizable/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.