617 B
617 B
title | localeTitle |
---|---|
Use CSS Grid Units to Change the Size of Columns and Rows | 使用CSS网格单位更改列和行的大小 |
使用CSS网格单位更改列和行的大小
此挑战要求您将容器列的宽度设置为质询描述中指定的宽度。
暗示
更改grid-template-columns
属性。
解
由于挑战要求您将宽度设置为1fr
, 100px
和2fr
,因此2fr
的css grid-template-columns
属性.container
为:
grid-template-columns: 1fr 100px 2fr;