Adjusting table cell width

后端 未结 5 1252
臣服心动
臣服心动 2020-12-17 18:05

Let\'s take 4 table columns - ID, Text, Date, Action. In my case table have always constant width - in example 960px.

5条回答
  •  星月不相逢
    2020-12-17 18:38

    My best advice to you is to not touch the widths of the table, the table automatically layouts in a way that does all cells best.

    However, if you'd like to push through, I'd use width: 1px; on the cells that needs adjusting (one of each column is enough). Also use white-space: nowrap on all cells. that will make sure the lines don't break.

提交回复
热议问题