点击运行
grid-auto-flow 属性
grid-auto-flow
属性控制如何在网格中插入自动放置的项目。
这个网格有三列两行。
grid-auto-flow: column
逐列插入项目:
1
2
3
4
grid-auto-flow: row
逐行插入项目:
1
2
3
4
运行结果