CSS flex-အခြေခံ ပိုင်ဆိုင်မှု
ဥပမာ
ဒုတိယ flex-item ၏ ကနဦးအရှည်ကို 100 ပစ်ဇယ်အဖြစ် သတ်မှတ်ပါ-
div:nth-of-type(2) {
flex-basis:
100px;
}
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
ပိုင်ဆိုင်မှု သည် flex-basis
ပြောင်းလွယ်ပြင်လွယ်ရှိသော အရာတစ်ခု၏ ကနဦးအရှည်ကို သတ်မှတ်သည်။
မှတ်ချက်- ဒြပ်စင်သည် ပြောင်းလွယ်ပြင်လွယ်ရှိသော အရာမဟုတ်ပါက၊ flex-basis
ပိုင်ဆိုင်မှုသည် အကျိုးသက်ရောက်မှု မရှိပါ။
မူလတန်ဖိုး: | အော်တို |
---|---|
အမွေဆက်ခံသည်- | မဟုတ်ဘူး |
သက်ဝင်လှုပ်ရှားနိုင်သော | ဟုတ်တယ် ကာတွန်း အကြောင်းဖတ်ပါ။ |
ဗားရှင်း- | CSS3 |
JavaScript syntax- | အရာဝတ္ထု .style.flexBasis="200px" |
Browser ပံ့ပိုးမှု
ဇယားရှိ နံပါတ်များသည် ပိုင်ဆိုင်မှုကို အပြည့်အဝထောက်ခံသည့် ပထမဆုံးဘရောက်ဆာဗားရှင်းကို သတ်မှတ်ပေးသည်။
-webkit- သို့မဟုတ် -moz- ဖြင့်လိုက်သောနံပါတ်များကို ရှေ့ဆက်တွဲဖြင့်လုပ်ဆောင်သော ပထမဆုံးဗားရှင်းကို သတ်မှတ်ပေးသည်။
Property | |||||
---|---|---|---|---|---|
flex-basis | 29.0 21.0 -webkit- |
11.0 | 28.0 18.0 -moz- |
9.0 6.1 -webkit- |
17.0 |
CSS Syntax
flex-basis: number|auto|initial|inherit;
အိမ်ခြံမြေတန်ဖိုးများ
Value | Description | Play it |
---|---|---|
number | A length unit, or percentage, specifying the initial length of the flexible item(s) | |
auto | Default value. The length is equal to the length of the flexible item. If the item has no length specified, the length will be according to its content | |
initial | Sets this property to its default value. Read about initial | |
inherit | Inherits this property from its parent element. Read about inherit |
ဆက်စပ်စာမျက်နှာများ
CSS သင်ခန်းစာ- CSS Flexible Box
CSS ရည်ညွှန်းချက်- flex ပိုင်ဆိုင်မှု
CSS ရည်ညွှန်းချက်- flex-direction ပိုင်ဆိုင်မှု
CSS ရည်ညွှန်းချက်- flex-flow ပိုင်ဆိုင်မှု
CSS ရည်ညွှန်းချက်- flex-grow ပိုင်ဆိုင်မှု
CSS ရည်ညွှန်းချက်- flex-shrink ပိုင်ဆိုင်မှု
CSS ရည်ညွှန်းချက်- flex-wrap ပိုင်ဆိုင်မှု
HTML DOM ရည်ညွှန်းချက်- flexBasis ပိုင်ဆိုင်မှု