Current location - Loan Platform Complete Network - Big data management - 2020-09-23 Antd Table's auto layout and fixed layout
2020-09-23 Antd Table's auto layout and fixed layout
Reference /p/137218174

The most basic knowledge of the internal use of antd table is still the browser's native html attribute table. antd uses table-layout: auto by default, and only switches to table-layout: fixed when the table needs to add a no line break feature or add fixed columns. fixed

table-width (TW): auto, fixed table-width: percentage, fixed-length

table-realTW

column-width

column-realW

cell-width

column-set-top-width

cell-content-width

cell-content-width

column-set-top-width

column-set-top-width

column-set-top-width

Minimum width of cell content

In auto mode, there are four widths that affect the table layout

antd's table is auto by default

fixed layout is not controlled by cell content, it is what it is