How is “grid-template-rows: auto auto 1fr auto” interpreted?

前端 未结 4 1591
我寻月下人不归
我寻月下人不归 2020-12-06 01:29

Recently, I created a layout using CSS grid. While this works well, I\'m confused by how it works. Specifically, I\'m confused about the line grid-template-rows: auto

4条回答
  •  死守一世寂寞
    2020-12-06 02:17

    The fr unit represents a fraction of the leftover space in the grid container.

    The leftover space is calculated after auto etc.

提交回复
热议问题