CSS grid-auto-rows Özellik
Örnek
Izgaradaki satırlar için varsayılan bir boyut ayarlayın:
.grid-container {
display: grid;
grid-auto-rows: 150px;
}
Tanım ve Kullanım
Özellik grid-auto-rows
, bir ızgara kapsayıcısındaki satırlar için bir boyut ayarlar.
Bu özellik yalnızca boyutu ayarlanmamış satırları etkiler.
Varsayılan değer: | Oto |
---|---|
Miras: | Hayır |
canlandırılabilir: | Evet. Canlandırılabilir hakkında bilgi edinin |
Sürüm: | CSS Izgara Düzen Modülü Seviye 1 |
JavaScript sözdizimi: | nesne .style.gridAutoRows="60px" |
Tarayıcı Desteği
Tablodaki sayılar, özelliği tam olarak destekleyen ilk tarayıcı sürümünü belirtir.
Property | |||||
---|---|---|---|---|---|
grid-auto-rows | 57 | 16 | 52 | 10 | 44 |
CSS Sözdizimi
grid-auto-rows: auto|max-content|min-content|length;
Mülk değerleri
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 |
İlgili Sayfalar
CSS Eğitimi: CSS Izgara Düzeni
CSS Referansı: grid-auto-columns özelliği