စတိုင် flex အိမ်ခြံမြေ
ဥပမာ
လိုက်လျောညီထွေရှိသော အရာများအားလုံးသည် ၎င်း၏အကြောင်းအရာကို မခွဲခြားဘဲ အရှည်တူညီပါစေ-
for (i = 0; i
y[i].style.flex = "1";
}
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
flex ပိုင်ဆိုင်မှုသည် တူညီသောကွန်တိန်နာအတွင်းရှိ အခြားပြောင်းလွယ်ပြင်လွယ်ရှိသည့်အရာများနှင့် စပ်လျဉ်းပြီး ပစ္စည်း၏အရှည်ကို သတ်မှတ်ပေးသည် သို့မဟုတ် ပြန်ပေးသည်။
flex ပိုင်ဆိုင်မှုသည် flexGrow၊ flexShrink နှင့် flexBasis ဂုဏ်သတ္တိများအတွက် အတိုကောက်ဖြစ်သည်။
မှတ်ချက် ။
Browser ပံ့ပိုးမှု
Property | |||||
---|---|---|---|---|---|
flex | Yes | 11.0 10.0 msFlex |
Yes | 9.0 | Yes |
အထားအသို
Flex ပိုင်ဆိုင်မှုကို ပြန်ပေးပါ-
object.style.flex
flex ပိုင်ဆိုင်မှုကို သတ်မှတ်ပါ-
object.style.flex = "flex-grow flex-shrink flex-basis|auto|initial|inherit"
အိမ်ခြံမြေတန်ဖိုးများ
Value | Description |
---|---|
flex-grow | A number specifying how much the item will grow relative to the rest of the flexible items |
flex-shrink | A number specifying how much the item will shrink relative to the rest of the flexible items |
flex-basis | The length of the item. Legal values: "auto", "inherit", or a number followed by "%", "px", "em" or any other length unit |
auto | Same as 1 1 auto. |
initial | Same as 0 1 auto. Read about initial |
none | Same as 0 0 auto. |
inherit | Inherits this property from its parent element. Read about inherit |
နည်းပညာဆိုင်ရာအသေးစိတ်
မူလတန်ဖိုး: | 0 1 အော်တို |
---|---|
ပြန်ပို့တန်ဖိုး- | ဒြပ်စင်တစ်ခု၏ flex ပိုင်ဆိုင်မှုကို ကိုယ်စားပြုသော စာတန်း |
CSS ဗားရှင်း | CSS3 |
ဆက်စပ်စာမျက်နှာများ
CSS ရည်ညွှန်းချက်- flex ပိုင်ဆိုင်မှု
HTML DOM STYLE အကိုးအကား- flexBasis ပိုင်ဆိုင်မှု
HTML DOM STYLE အကိုးအကား- flexDirection ပိုင်ဆိုင်မှု
HTML DOM STYLE အကိုးအကား- flexFlow ပိုင်ဆိုင်မှု
HTML DOM STYLE အကိုးအကား- flexGrow ပိုင်ဆိုင်မှု
HTML DOM STYLE အကိုးအကား- flexShrink ပိုင်ဆိုင်မှု
HTML DOM STYLE အကိုးအကား- flexWrap ပိုင်ဆိုင်မှု
❮ စတိုင်အရာဝတ္ထု