将最后两个flexbox justify-content项对齐到左侧

时间:2017-08-15 13:11:54

标签: css flexbox

如何将最后两个项目对齐到左边? 有时最后两个项目之间存在巨大差距。是否有一些flexbox指令可以解决这个问题?

.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-content: space-between;
  width: 250px;
  border: 1px solid #000;
}
<div class="container">
  <div>xxxxxxxx</div>
  <div>xxxxxxxx</div>
  <div>xxxxxxxx</div>
  <div>xxxxxxxx</div>
  <div>xxxxxxxx</div>
  <div>xxxxxxxx</div>
  <div>xxxxxxxx</div>
  <div>xxxxxxxx</div>
</div>

0 个答案:

没有答案