jquery - 如何使用 jQuery 在带有滚动条的 html 中创建可调整大小的表格?

标签 jquery html html-table scrollbar resizable

我想在 HTML 中创建一个具有可调整大小的列的表格。我也想要滚动条到表格,但表格标题在滚动时应保持固定。

请帮忙。

最佳答案

www.tablefixedheader.com

Just create a basic valid HTML like the example below. But note that the hierarchy must be :

 - table > thead > tr > th
 - table > tbody > tr > td

Example for re-sizable cols

    $('#4').fixheadertable({ 
    caption     : 'My employees', 
    colratio    : [50, 150, 150, 150, 220, 150], 
    height      : 200, 
    width       : 800, 
    zebra       : true,
    resizeCol   : true,
    minColWidth : 50 
});

关于jquery - 如何使用 jQuery 在带有滚动条的 html 中创建可调整大小的表格?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10528065/

相关文章:

javascript - jquery 加载特定页面/查询字符串

jquery - 当 javascript 要求时,占位符脚本不适用

javascript - Ajax 表单提交将查询字符串附加到 url 并重新加载页面

html - 如何在 Bootstrap 网格中制作响应式图像堆栈

html - 可以在 HTML5 中定义自己的标签吗?

javascript - 在不扭曲列数据的情况下添加表格列分隔符?

javascript - 如何使我的 OpenLayer 3 map 与我的动画一起自动平移?

html - 在同一行显示 2 个 DIV,其中一个是图片

javascript - 展开表格中的一行

"calendar"的 HTML 表格 CSS 设计