The problem of setting width and height of Table Table in antd

The default height of the Table list in

antd is not good-looking. If you want to adjust the height, you will find that if there is too much content, it will not automatically wrap, the content will overlap, and adding the auto-wrapping attribute white-space: normal will not work. How do you solve this problem

Mar.18,2021

knows how to do it.


caused by padding.

modify the padding value

.ant-table-tbody > tr > td {
    padding: 16px 16px;
    word-break: break-word;
}
Menu