خاصية CSS grid-auto-rows
مثال
عيّن حجمًا افتراضيًا للصفوف في الشبكة:
.grid-container {
display: grid;
grid-auto-rows: 150px;
}
التعريف والاستخدام
تعيّن grid-auto-rows
الخاصية حجم الصفوف في حاوية الشبكة.
تؤثر هذه الخاصية فقط على الصفوف التي لم يتم تعيين الحجم.
القيمة الافتراضية: | تلقاءي |
---|---|
وارث: | رقم |
متحرك: | نعم. اقرأ عن animatable |
الإصدار: | وحدة تخطيط شبكة CSS المستوى 1 |
بناء جملة JavaScript: | الكائن .style.gridAutoRows = "60px" |
دعم المتصفح
تحدد الأرقام الواردة في الجدول إصدار المتصفح الأول الذي يدعم الخاصية بالكامل.
Property | |||||
---|---|---|---|---|---|
grid-auto-rows | 57 | 16 | 52 | 10 | 44 |
بنية CSS
grid-auto-rows: auto|max-content|min-content|length;
قيم الملكية
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 |
الصفحات ذات الصلة
دروس CSS: تخطيط شبكة CSS
مرجع CSS: خاصية أعمدة الشبكة التلقائية