.testTable{ /* 确保应用于所有单元格 */ .ant-pro-table .ant-table-cell { border: 1px solid black !important; /* 强制设置黑色边框 */ } /* 如果你希望标题单元格和数据单元格都一致 */ .ant-pro-table .ant-table-thead > tr > th, .ant-pro-table .ant-table-tbody > tr > td { border: 1px solid black !important; } }