效果:
首选在table标签下,加入下列table-layout="fixed"的属性:
.ant-table{
table-layout: fixed;
}
然后再table里面的td下加入下列属性:
.ant-table-tbody > tr > td {
max-width: 110px;
border-bottom: 0;
text-align: center !important;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}