CSS grid-auto-rows Property
ဥပမာ
ဇယားကွက်တစ်ခုရှိ အတန်းများအတွက် မူရင်းအရွယ်အစားကို သတ်မှတ်ပါ-
.grid-container {
display: grid;
grid-auto-rows: 150px;
}
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
ပိုင်ဆိုင်မှု သည် grid-auto-rows
ဇယားကွက်ကွန်တိန်နာရှိ အတန်းများအတွက် အရွယ်အစားကို သတ်မှတ်ပေးသည်။
ဤပိုင်ဆိုင်မှုသည် သတ်မှတ်မထားသော အရွယ်အစားရှိသော အတန်းများကိုသာ သက်ရောက်မှုရှိသည်။
မူလတန်ဖိုး: | အော်တို |
---|---|
အမွေဆက်ခံသည်- | မဟုတ်ဘူး |
သက်ဝင်လှုပ်ရှားနိုင်သော | ဟုတ်တယ် ကာတွန်း အကြောင်းဖတ်ပါ။ |
ဗားရှင်း- | CSS Grid Layout Module အဆင့် ၁ |
JavaScript syntax- | အရာဝတ္ထု .style.gridAutoRows="60px" |
Browser ပံ့ပိုးမှု
ဇယားရှိ နံပါတ်များသည် ပိုင်ဆိုင်မှုကို အပြည့်အဝထောက်ခံသည့် ပထမဆုံးဘရောက်ဆာဗားရှင်းကို သတ်မှတ်ပေးသည်။
Property | |||||
---|---|---|---|---|---|
grid-auto-rows | 57 | 16 | 52 | 10 | 44 |
CSS Syntax
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 Grid Layout
CSS ရည်ညွှန်းချက်- grid-auto-columns ပိုင်ဆိုင်မှု