在React应用程序中,我使用的是material中可用的Table组件。但是,在样式支柱中指定高度:10 of并不会调整单个行的高度。请建议如何指定或降低默认行高。
发布于 2018-04-25 20:28:12
您可能需要将所有td的高度设置为auto,然后您将能够更改tr行高度。
使用css应用此方法
tr {
height: 10px;
}
tr td {
height: auto !important;
}
发布于 2019-11-06 19:46:40
您可以尝试减少表单元格的填充,但必须对所有表单元格进行压缩。这只是一项工作。
this.deleteItem(index)}>{item.name} Pot number {this.changeRate(event,index)}} type="number" /> {item.rate} {item.itemTotal}发布于 2022-10-09 05:28:24
https://stackoverflow.com/questions/50030674
复制相似问题