如何用水平滚动固定表格标题

How to fix table header with horizontal scroll?

本文关键字:表格 标题 滚动 何用 水平      更新时间:2023-09-26

我的表头有两行。这些行中的列数不相同。http://jsbin.com/exacey

现在,我想修复thead部分并使tbody可滚动。我尝试了几个jQuery插件,即:https://github.com/farinspace/jquery.tableScroll;https://github.com/benjaminleouzon/tablefixedheaderhttps://github.com/golovko/Fixed-Header-Table

问题是,这些插件工作得很好,直到你想修复没有水平滚动的标题。事实上,https://github.com/benjaminleouzon/tablefixedheader声称支持水平滚动条,但在我的情况下,它失败了。

我也试过手动修复它http://www.imaputz.com/cssStuff/bigFourVersion.html
但这也只适用于垂直滚动。

所以,请帮我修理收割台。请提供一些对我有用的链接。

我看到了Fixed标头http://www.tablefixedheader.com/fullpagedemo/工作非常好。你能用tablefixedheader插件发布你失败的代码吗?