【发布时间】:2020-04-11 00:18:37
【问题描述】:
我有 3 个网格项目(见下面的代码);在移动设备上,我希望左右网格项目显示在中间网格项目上方,而在平板电脑视图上,我希望它们显示在中间网格项目上方并彼此相邻。我如何做到这一点?
我正在使用:https://material-ui.com/components/grid/
<Grid item xs={12} md={3} sm={6}>
<ProductList
productgroup={this.state.product.group}
productnumber={this.state.product.number}
handleProductSelect={this.handleProductSelect}
productlist={this.props.productlist}
theme={this.props.selectedTheme} />
</Grid>
<Grid item xs={12} md={6} sm={12}>
<TableProduct product={this.state.product} parameters={this.state.parameters} />
</Grid>
<Grid item xs={12} md={3} sm={6}>
<ParameterSelect product={this.state.product} parameters={this.state.parameters} onChange={this.handleInputChange} />
</Grid>
</Grid>
【问题讨论】:
标签: reactjs material-ui