How to freeze header and left columns of the table

后端 未结 2 1587
醉酒成梦
醉酒成梦 2021-01-14 12:11

I want to fix header and 3 left columns of my table.

But I found only one suitable solution. Here is link: http://hazaa.com.au/blog/how-to-create-an-html-table-with

2条回答
  •  青春惊慌失措
    2021-01-14 13:10

    the standard html table does not support frozen columns, even with css.

    if you can use a jquery plugin, i suggest you to use http://www.datatables.net/ with the fixedcolumns plugin (just configure and it works as supposed :) )

    if not, you will end up with u solution where you havo to split up the table in the one or the other way, and if you want to have scrollable tables you will have to use javascript since css and html do not support such features yet.

提交回复
热议问题