ပုံစံ flexGrow အိမ်ခြံမြေ
ဥပမာ
အပြာရောင် DIV ဒြပ်စင်အား အခြားပြောင်းလွယ်ပြင်လွယ်ရှိသော အရာများထက် ငါးဆပိုကျယ်စေပါ-
document.getElementById("myBlueDiv").style.flexGrow = "5";
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
flexGrow ပိုင်ဆိုင်မှုသည် တူညီသောကွန်တိန်နာအတွင်းရှိ အခြားပြောင်းလွယ်ပြင်လွယ်ရှိသည့်အရာများနှင့် ဆက်စပ်ပစ္စည်းမည်မျှကြီးထွားလာမည်ကို သတ်မှတ်ပေးသည်။
မှတ်ချက်- ဒြပ်စင်သည် ပြောင်းလွယ်ပြင်လွယ်ရှိသောအရာမဟုတ်ပါက၊ flexGrow ပိုင်ဆိုင်မှုသည် အကျိုးသက်ရောက်မှုမရှိပါ။
Browser ပံ့ပိုးမှု
Property | |||||
---|---|---|---|---|---|
flexGrow | Yes | 11.0 | Yes | 9.0 | Yes |
အထားအသို
flexGrow ပိုင်ဆိုင်မှုကို ပြန်ပေးပါ။
object.style.flexGrow
flexGrow ပိုင်ဆိုင်မှုကို သတ်မှတ်ပါ-
object.style.flexGrow = "number|initial|inherit"
အိမ်ခြံမြေတန်ဖိုးများ
Value | Description |
---|---|
number | A number specifying how much the item will grow relative to the rest of the flexible items. Default value is 0 |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
နည်းပညာဆိုင်ရာအသေးစိတ်
မူလတန်ဖိုး: | ၀ယ်တယ်။ |
---|---|
ပြန်ပို့တန်ဖိုး- | ဒြပ်စင်တစ်ခု၏ ကွေးညွှတ်ကြီးထွားမှုကို ကိုယ်စားပြုသည့် စာကြောင်းတစ်ခု |
CSS ဗားရှင်း | CSS3 |
ဆက်စပ်စာမျက်နှာများ
CSS ရည်ညွှန်းချက်- flex-grow ပိုင်ဆိုင်မှု
HTML DOM STYLE အကိုးအကား- flex ပိုင်ဆိုင်မှု
HTML DOM STYLE အကိုးအကား- flexBasis ပိုင်ဆိုင်မှု
HTML DOM STYLE အကိုးအကား- flexDirection ပိုင်ဆိုင်မှု
HTML DOM STYLE အကိုးအကား- flexFlow ပိုင်ဆိုင်မှု
HTML DOM STYLE အကိုးအကား- flexShrink ပိုင်ဆိုင်မှု
HTML DOM STYLE အကိုးအကား- flexWrap ပိုင်ဆိုင်မှု
❮ စတိုင်အရာဝတ္ထု