Ani*_*nil 11 reactjs material-ui
我正在我的 React JS 应用程序中使用 Material-ui 中提供的 Table 组件。但是,在 style 属性中指定 height:10px 不会调整各个行的高度。请建议如何指定或减少默认行高。
您可能需要将所有高度设置td为自动,然后您将能够更改行tr高
使用 css 应用它
tr {
height: 10px;
}
tr td {
height: auto !important;
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
47574 次 |
| 最近记录: |