小编tfu*_*tfu的帖子

在 grid-template-rows 中使用自动填充或自动调整:repeat(auto-fill, 200px) 仅设置第一行的高度 - 这是为什么?

我想使用设置网格中每一行的行高grid-template-rows: repeat(auto-fill, 200px),但意识到它仅适用于网格的第一行。事实证明grid-auto-rows: 200px更适合我的需求,但我仍然想知道为什么使用auto-fillingrid-template-rows: repeat(auto-fill, 200px)只设置第一行而不是所有行的高度。注意:如果我使用整数而不是auto-fill正确设置指定行数的高度。

图片示例:

css css-grid

6
推荐指数
1
解决办法
6076
查看次数

标签 统计

css ×1

css-grid ×1