📜  align-content 和 align-items 之间的区别 - 无论代码示例

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

代码示例1
First, align-items is for items in a single row. So for a single row of elements on main axis, align-items will align these items respective of each other and it will start with fresh perspective from the next row.

Now, align-content doesn't interfere with items in a row but with rows itself. Hence, align-content will try to align rows with respect to each other and flex container.

Check this fiddle : https://jsfiddle.net/htym5zkn/8/