📜  在 flex-direction 行反向之后对齐项目 - 无论代码示例

📅  最后修改于: 2022-03-11 14:56:59.605000             🧑  作者: Mango

代码示例1
#main {
  width: 400px;
  height: 400px;
  border: 1px solid #c3c3c3;
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  justify-content: flex-end; <------need this
}

#main div {
  width: 50px;
  height: 50px;
}