开发者

Scrollable resizable table with fixed header

开发者 https://www.devze.com 2023-01-12 17:21 出处:网络
I am looking for a HTML table where the header is fixed. I\'ve found some solutions on the net and on Stack Overflow but none of seems to fit my needs.

I am looking for a HTML table where the header is fixed. I've found some solutions on the net and on Stack Overflow but none of seems to fit my needs.

What I want is something like this: http://www.imaputz.com/cssStuff/bigFourVersion.h开发者_C百科tml but when you resize the browser window the table should show a horizontal scrollbar. In the example mentioned above only the browser shows a vertical scrollbar and this is not what I want. If I can adjust the above example or you have something I can use (jQuery is not really an option) then please let me know.


you can use css

ex:

This would add a horizontal and vertical scroll

table { overflow: scroll; }

or you can use

overflow-x or overflow-y if you only want one of them.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号