📜  flex max item per row - 无论代码示例

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

代码示例1
.parent {
  display: flex;
  flex-wrap: wrap;
}

.child {
  flex: 2 0 21%; /* explanation below */
  margin: 5px;
  height: 100px;
  background-color: blue;
}