Lock table cells to their default size regardless of content

前端 未结 8 2055
栀梦
栀梦 2021-01-02 13:25

If I have

8条回答
  •  Happy的楠姐
    2021-01-02 13:36

    You could try table-layout:fixed; - this sets the layout to a certain fixed size (specified in CSS) and ignores the content of the cells, so the width of the cell never changes. I'm not sure if this affects vertical layout or not.

    More info on w3schools.

提交回复
热议问题