ပုံစံ flexBasis အိမ်ခြံမြေ
ဥပမာ
Flex-item တစ်ခု၏ ကနဦးအရှည်ကို 200 pixels သို့ သတ်မှတ်ပါ-
document.getElementById("myBlueDiv").style.flexBasis = "200px";
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
flexBasis ပိုင်ဆိုင်မှုသည် ပြောင်းလွယ်ပြင်လွယ်ရှိသော အရာတစ်ခု၏ ကနဦးအရှည်ကို သတ်မှတ်သည်။
မှတ်ချက်- ဒြပ်စင်သည် ပြောင်းလွယ်ပြင်လွယ်ရှိသောအရာမဟုတ်ပါက၊ flexBasis ပိုင်ဆိုင်မှုသည် အကျိုးသက်ရောက်မှုမရှိပါ။
Browser ပံ့ပိုးမှု
Property | |||||
---|---|---|---|---|---|
flexBasis | Yes | 11.0 | Yes | 9.0 | Yes |
အထားအသို
flexBasis ပိုင်ဆိုင်မှုကို ပြန်ပေးပါ။
object.style.flexBasis
flexBasis ပိုင်ဆိုင်မှုကို သတ်မှတ်ပါ-
object.style.flexBasis = "number|auto|initial|inherit"
အိမ်ခြံမြေတန်ဖိုးများ
Value | Description |
---|---|
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 |
နည်းပညာဆိုင်ရာအသေးစိတ်
မူလတန်ဖိုး: | အော်တို |
---|---|
ပြန်ပို့တန်ဖိုး- | ဒြပ်စင်တစ်ခု၏ flex-အခြေခံပိုင်ဆိုင်မှုကို ကိုယ်စားပြုသော စာတန်း |
CSS ဗားရှင်း | CSS3 |
ဆက်စပ်စာမျက်နှာများ
CSS ရည်ညွှန်းချက်- flex-basis ပိုင်ဆိုင်မှု
HTML DOM STYLE အကိုးအကား- flex ပိုင်ဆိုင်မှု
HTML DOM STYLE အကိုးအကား- flexDirection ပိုင်ဆိုင်မှု
HTML DOM STYLE အကိုးအကား- flexFlow ပိုင်ဆိုင်မှု
HTML DOM STYLE အကိုးအကား- flexGrow ပိုင်ဆိုင်မှု
HTML DOM STYLE အကိုးအကား- flexShrink ပိုင်ဆိုင်မှု
HTML DOM STYLE အကိုးအကား- flexWrap ပိုင်ဆိုင်မှု
❮ စတိုင်အရာဝတ္ထု