【发布时间】:2020-12-31 16:55:57
【问题描述】:
我有两个网格,我想在元素之间创建间距,间距必须水平为 5px,我使用了间距={5},但没有用
<Grid container direction={'row'} spacing={5}>
<Grid item xs={12}>
<FormControl
className={classes.formControl}
fullWidth
>
<InputLabel id="issue-label">Issue</InputLabel>
<Select
className={classes.select}
id="issue"
onChange={handleIssue}
>
<MenuItem value="" disabled>
Please select
</MenuItem>
))}
</Select>
</FormControl>
</Grid>
<Grid item xs={12}>
<TextField
fullWidth={true}
multiline
/>
</Grid>
</Grid>
【问题讨论】:
-
你正在使用的
Grid组件来自哪个库 -
@Chandan from '@material-ui/core'
标签: reactjs material-ui grid