【发布时间】:2020-06-26 00:30:39
【问题描述】:
我有一个标题元素,我想显示 flex 列,这样我就可以将 .container div 垂直居中。这工作正常。然后我需要 .container 中的项目在 1200 像素上以均匀的间距连续弯曲。你不能在不同方向的弹性容器中做弹性容器吗?请在下面查看我的 css:
header {
height: 50px;
display: flex;
flex-direction: column;
justify-content: center;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 15px;
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
}
【问题讨论】:
标签: css