How do I create an HTML table with a fixed/frozen left column and a scrollable body?

后端 未结 25 1538
有刺的猬
有刺的猬 2020-11-21 22:27

I need a simple solution. I know it\'s similar to some other questions, like:

  • HTML table with fixed headers and a fixed column?
  • How can I lock the fir
25条回答
  •  离开以前
    2020-11-21 23:17

    Eamon Nerbonne, I changed some css in your code and it's better now(the scroll bar starts from the first row)

    http://jsfiddle.net/At8L8/

    I just add two line :

    .div : padding-left:5em;
    .headcol : background-color : #fff;
    

提交回复
热议问题