Vlastnost CSS grid-auto-rows
Příklad
Nastavte výchozí velikost pro řádky v mřížce:
.grid-container {
display: grid;
grid-auto-rows: 150px;
}
Definice a použití
Vlastnost grid-auto-rows
nastavuje velikost řádků v kontejneru mřížky.
Tato vlastnost ovlivňuje pouze řádky, jejichž velikost není nastavena.
Výchozí hodnota: | auto |
---|---|
Zděděno: | Ne |
Animovatelné: | Ano. Přečtěte si o tématu Animable |
Verze: | Modul rozložení mřížky CSS, úroveň 1 |
Syntaxe JavaScriptu: | objekt .style.gridAutoRows="60px" |
Podpora prohlížeče
Čísla v tabulce určují první verzi prohlížeče, která plně podporuje vlastnost.
Property | |||||
---|---|---|---|---|---|
grid-auto-rows | 57 | 16 | 52 | 10 | 44 |
Syntaxe CSS
grid-auto-rows: auto|max-content|min-content|length;
Hodnoty vlastností
Value | Description | Play it |
---|---|---|
auto | Default value. The size of the rows is determined by the size of the largest item in the row | |
max-content | Sets the size of each row to depend on the largest item in the row | |
min-content | Sets the size of each row to depend on the largest item in the row | |
length | Sets the size of the rows, by using a legal length value. Read about length units |
Související stránky
Cvičení CSS: Rozvržení mřížky CSS
CSS Reference: Vlastnost grid -auto-columns