javascript - 在 React 中移动网格布局
问题描述
您好,我需要移动网格以显示以下布局
我仍在尝试了解网格是如何工作的,下面是我格式化网格的尝试,但是它不想在我希望的庄园中对齐
<Grid item xs={8}>
<Grid className = {classes.root} container direction ="column"
alignItems="flex-start">
{/* <Typography variant="title" style={{ }}>example</Typography> */}
<Paper className = {classes.mainDetailsPaper}>
<Typography variant="title">Main Details</Typography><Divider />
<Typography variant="subheading">Organisation: </Typography>
<Typography variant="subheading">Category: </Typography>
<Typography variant="subheading">Sub Category: </Typography>
</Paper>
</Grid>
<Grid className = {classes.root} container direction ="row"
alignItems="flex-end">
<Paper className = {classes.subDetailsPaper}>
<Typography variant="title">Contract Dates</Typography><Divider />
<Typography variant="subheading">Start Date: </Typography>
</Paper>
<Paper className = {classes.subDetailsPaper}>
<Typography variant="title">Valuation</Typography><Divider />
<Typography variant="subheading">Estimated Contract Value: </Typography>
</Paper>
<Paper className = {classes.subDetailsPaper}>
<Typography variant="title">Supplier Info</Typography><Divider />
</Paper>
</Grid>
</Grid>
解决方案
推荐阅读
- javascript - 打印窗口不显示
- hadoop - 将 .zip 文件从 FTP 服务器直接导出到 HDFS
- continuous-integration - 从文件夹发布构建工件而不包括根文件夹
- python - 按分隔符拆分时保持引用块完整
- css - React 组件滑入/滑出
- node.js - 使用预先填充的 JSON 数据服务 ReactJS 应用程序
- vb.net - VB后台Worker取消RunWorkerCompleted
- arrays - 我不想将数据作为数组中的字符串获取-coffeescript
- javascript - 热重载的内部
- c++ - 模板忽略 [[nodiscard]] 属性