CSS -rooster-outo-rye Eiendom
Voorbeeld
Stel 'n verstekgrootte vir die rye in 'n rooster:
.grid-container {
display: grid;
grid-auto-rows: 150px;
}
Definisie en gebruik
Die grid-auto-rows
eiendom stel 'n grootte vir die rye in 'n roosterhouer.
Hierdie eienskap raak slegs rye waarvan die grootte nie gestel is nie.
Standaard waarde: | outo |
---|---|
Geërf: | geen |
Animateerbaar: | ja. Lees oor animeerbaar |
Weergawe: | CSS Grid Uitleg Module Vlak 1 |
JavaScript-sintaksis: | voorwerp .style.gridAutoRows="60px" |
Blaaierondersteuning
Die nommers in die tabel spesifiseer die eerste blaaierweergawe wat die eiendom ten volle ondersteun.
Property | |||||
---|---|---|---|---|---|
grid-auto-rows | 57 | 16 | 52 | 10 | 44 |
CSS-sintaksis
grid-auto-rows: auto|max-content|min-content|length;
Eiendomswaardes
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 |
Verwante bladsye
CSS-tutoriaal: CSS-roosteruitleg
CSS-verwysing: Die rooster-outo-kolomme- eienskap