CSS grid-template-rows Property
ဥပမာ
အတန်းအရွယ်အစား (အမြင့်) ကို သတ်မှတ်ပါ ။
.grid-container {
display: grid;
grid-template-rows:
100px 300px;
}
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
grid-template-rows
ပိုင်ဆိုင်မှုသည် ဇယားကွက်အပြင်အဆင်တွင် အတန်းများ၏ နံပါတ် (နှင့် အမြင့်) ကို သတ်မှတ်ပေးသည် ။
တန်ဖိုးများသည် သက်ဆိုင်ရာအတန်း၏ အမြင့်ကို သတ်မှတ်ပေးသည့် တန်ဖိုးတစ်ခုစီမှ space-separed list တစ်ခုဖြစ်သည်။
မူလတန်ဖိုး: | မရှိ |
---|---|
အမွေဆက်ခံသည်- | မဟုတ်ဘူး |
သက်ဝင်လှုပ်ရှားနိုင်သော | ဟုတ်တယ် ကာတွန်း အကြောင်းဖတ်ပါ။ |
ဗားရှင်း- | CSS Grid Layout Module အဆင့် ၁ |
JavaScript syntax- | အရာဝတ္ထု .style.gridTemplateRows="50px 200px" |
Browser ပံ့ပိုးမှု
ဇယားရှိ နံပါတ်များသည် ပိုင်ဆိုင်မှုကို အပြည့်အဝထောက်ခံသည့် ပထမဆုံးဘရောက်ဆာဗားရှင်းကို သတ်မှတ်ပေးသည်။
Property | |||||
---|---|---|---|---|---|
grid-template-rows | 57 | 16 | 52 | 10 | 44 |
CSS Syntax
grid-template-rows: none|auto|max-content|min-content|length|initial|inherit;
အိမ်ခြံမြေတန်ဖိုးများ
Value | Description | Play it |
---|---|---|
none | No size is set. Rows are created if needed | |
auto | The size of the rows is determined by the size of the container, and on the size of the content of the items 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 smallest 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 ရည်ညွှန်းချက်- ဇယားကွက်-ကော်လံများ ပိုင်ဆိုင်မှု
CSS ရည်ညွှန်းချက်- ဇယားကွက်ပုံစံ ပိုင်ဆိုင်မှု