table的第一行和第一列设置样式
.test_table td:first-child { font-weight: bold; } .test_table th { font-weight: bold; }
<div className={styles.test_table} > <Table columns={[...partInfoHeader]} dataSource={[...partInfoDataSource]} bordered pagination={false} scroll={{ x: 1300, }} /> </div>