How to hide table rows without resizing overall width?

后端 未结 5 1333
粉色の甜心
粉色の甜心 2020-12-19 06:33

Is there a way to hide table rows without affecting the overall table width? I\'ve got some javascript that shows/hides some table rows, but when the rows are set to d

5条回答
  •  天涯浪人
    2020-12-19 06:39

    In CSS, table-layout: fixed; on your table instructs the browser to honor the sizes you've specified for heights and widths. This generally suppresses auto-resizing by the browser unless you haven't given any hints as to the preferred sizes of your rows and columns.

提交回复
热议问题