How to fix height of TR?

前端 未结 7 628
情深已故
情深已故 2020-11-27 02:50

Is it possible to fix the height of a row (tr) on a table?

The problem appears when I shrink the window of the browser, some rows start playing around, and I can not

相关标签:
7条回答
  • 2020-11-27 03:48

    Your table width is 90% which is relative to it's container.

    If you squeeze the page, you are probably squeezing the table width as well. The width of the cells reduce too and the browser compensate by increasing the height.

    To have the height untouched, you have to make sure the widths of the cells can hold the intented content. Fixing the table width is probably something you want to try. Or perhaps play around with the min-width of the table.

    0 讨论(0)
提交回复
热议问题