Grid Row
网格行是Grid 布局中的水平轨道,即两个水平网格线之间的空间。它通过属性 grid-template-rows
或者简写属性 grid
, grid-template
定义。
另外,当项目被放置到显示网格中创建的行外面时,可以在隐式网格中创建网格行。默认情况这些行自动调整大小,也可以使用 grid-auto-rows
属性指定其大小。
在Grid 布局中使用对齐方式时,网格行沿着横轴运行。
了解更多
属性参考
扩展阅读
- CSS Grid Layout Guide: Basic concepts of grid layout