How can I lock the first row and first column of a table when scrolling, possibly using JavaScript and CSS?

后端 未结 13 2048
攒了一身酷
攒了一身酷 2020-11-27 03:11

How can I create a table that has its first row and first column both locked, as in Excel, when you activate \'freeze panes\'? I need the table to both scroll horizontally

相关标签:
13条回答
  • 2020-11-27 04:12

    Here a plugin JQuery: https://github.com/nitsugario/jQuery-Freeze-Table-Column-and-Rows

    This is a jQuery plugin that can make table rows and columns not scroll. It can take a given HTML table object and set it so it can freeze a given number of columns or rows or both, so the fixed columns or rows do not scroll. The rows to be frozen should be placed in the table head section. It can also freeze rows and columns combined with using colspan or rowspan attributes.

    0 讨论(0)
提交回复
热议问题