【发布时间】:2022-02-07 15:50:55
【问题描述】:
我刚刚升级到 MUI 5.4 版,现在我的内联排版不再正确。
这是适用于 MUI 版本 4 的代码:
<Grid container xs={12}>
<Grid container xs={12} justify="space-between" style={{borderBottom: "3px solid black"}}>
<Typography inline>Value</Typography>
<Typography inline align="right">{prodVol}MWh</Typography>
</Grid>
</Grid>
我的猜测是,新网格存在问题,因为当我更改导入代码时,代码停止工作。
【问题讨论】:
-
请查看answer。
-
太棒了。非常感谢:)
标签: reactjs material-ui typography text-align