Table with sticky header and resizable columns without using JQuery

后端 未结 4 2112
梦谈多话
梦谈多话 2021-02-13 10:44

All the solutions I\'ve seen to make a table with a sticky header and resizable columns seems to be using Jquery. I want a plain old solution using CSS only if possible. If CSS

4条回答
  •  无人及你
    2021-02-13 11:34

    For CSS resizable columns you could use this trick. Abuse the webkit resizable textarea feature. Wrap header titles in readonly textareas and style as headings, just leave the resizing thumb. Use min-max-width to the same to disable vertical resizing. This is just Proof-of-work. Play with it.

      
     
        
    12345
    11111
    11111
    11111
    11111
    11111

    Demo http://jsfiddle.net/rft8v4sp/1/

提交回复
热议问题