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

后端 未结 13 2180
攒了一身酷
攒了一身酷 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 03:59

    I've posted my jQuery plugin solution here: Frozen table header inside scrollable div

    It does exactly what you want and is really lightweight and easy to use.

提交回复
热议问题