CSS grid-auto-columns Property
ဥပမာ
ဇယားကွက်ရှိ ကော်လံများအတွက် မူရင်းအရွယ်အစားကို သတ်မှတ်ပါ-
.grid-container {
display: grid;
grid-auto-columns: 50px;
}
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
ပိုင်ဆိုင်မှု သည် grid-auto-columns
ဇယားကွက်ကွန်တိန်နာရှိ ကော်လံများအတွက် အရွယ်အစားကို သတ်မှတ်ပေးသည်။
ဤပိုင်ဆိုင်မှုသည် သတ်မှတ်မထားသော အရွယ်အစားရှိသော ကော်လံများကိုသာ သက်ရောက်မှုရှိသည်။
မူလတန်ဖိုး: | အော်တို |
---|---|
အမွေဆက်ခံသည်- | မဟုတ်ဘူး |
သက်ဝင်လှုပ်ရှားနိုင်သော | ဟုတ်တယ် ကာတွန်း အကြောင်းဖတ်ပါ။ |
ဗားရှင်း- | CSS Grid Layout Module အဆင့် ၁ |
JavaScript syntax- | အရာဝတ္ထု .style.gridAutoColumns="120px" |
Browser ပံ့ပိုးမှု
ဇယားရှိ နံပါတ်များသည် ပိုင်ဆိုင်မှုကို အပြည့်အဝထောက်ခံသည့် ပထမဆုံးဘရောက်ဆာဗားရှင်းကို သတ်မှတ်ပေးသည်။
Property | |||||
---|---|---|---|---|---|
grid-auto-columns | 57 | 16 | 52 | 10 | 44 |
CSS Syntax
grid-auto-columns: auto|max-content|min-content|length;
အိမ်ခြံမြေတန်ဖိုးများ
Value | Description | Play it |
---|---|---|
auto | Default value. The size of the columns is determined by the size of the container | |
fit-content() | ||
max-content | Sets the size of each column depending on the largest item in the column | |
min-content | Sets the size of each column depending on the smallest item in the column | |
minmax(min.max) | Sets a size range greater than or equal to min and less than or equal to max | |
length | Sets the size of the columns, by using a legal length value. Read about length units | |
% | Sets the size of the columns, by using a percent value |
ဆက်စပ်စာမျက်နှာများ
CSS သင်ခန်းစာ- CSS Grid Layout
CSS ရည်ညွှန်းချက်- grid-auto-rows ပိုင်ဆိုင်မှု