Note on CSS align/justify, items/content
Created by Qiwei on 1/3/2021 · Edited on 1/24/2021
Align 是说 cross axis 上的东西
Justify 是说 main axis 上的东西
Items 是说一个 container 中的每个 box 中的 items
Content 是说一个 container 中的整体内容,可以看成行与行之间 or 列与列之间
组合:
align-items: cross axis 上怎样 align 每行中的 itemsalign-content: cross axis 上怎样 align 整体内容内的每一行justify-items: main axis 上怎样 align 每列中的 itemsjustify-content: main axis 上怎样 align 整体内容的每一列
https://www.w3.org/TR/css-align-3/#overview
https://developer.mozilla.org/en-US/docs/Web/CSS/align-items
https://developer.mozilla.org/en-US/docs/Web/CSS/align-content
https://developer.mozilla.org/en-US/docs/Web/CSS/justify-items
https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content