ပုံစံ flexDirection အိမ်ခြံမြေ
ဥပမာ
<div> ဒြပ်စင်အတွင်းရှိ ပြောင်းလွယ်ပြင်လွယ်ရှိသော အရာများ၏ ဦးတည်ချက်ကို ပြန်လည်စီစဉ်ပါ-
document.getElementById("main").style.flexDirection = "column-reverse";
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
flexDirection ပိုင်ဆိုင်မှုသည် ပြောင်းလွယ်ပြင်လွယ်ရှိသော အရာများ၏ ဦးတည်ချက်ကို သတ်မှတ် သို့မဟုတ် ပြန်ပေးသည်။
မှတ်ချက်- ဒြပ်စင်သည် ပြောင်းလွယ်ပြင်လွယ်ရှိသော အရာမဟုတ်ပါက၊ flexDirection ပိုင်ဆိုင်မှုသည် အကျိုးသက်ရောက်မှုမရှိပါ။
Browser ပံ့ပိုးမှု
Property | |||||
---|---|---|---|---|---|
flexDirection | Yes | 11.0 | Yes | 9.0 | Yes |
အထားအသို
flexDirection ပိုင်ဆိုင်မှုကို ပြန်ပေးပါ။
object.style.flexDirection
flexDirection ပိုင်ဆိုင်မှုကို သတ်မှတ်ပါ-
object.style.flexDirection = "row|row-reverse|column|column-reverse|initial|inherit"
အိမ်ခြံမြေတန်ဖိုးများ
Value | Description |
---|---|
row | Default value. The flexible items are displayed horizontally, as a row |
row-reverse | Same as row, but in reverse order |
column | The flexible items are displayed vertically, as a column |
column-reverse | Same as column, but in reverse order |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
နည်းပညာဆိုင်ရာအသေးစိတ်
မူလတန်ဖိုး: | အတန်း |
---|---|
ပြန်ပို့တန်ဖိုး- | ဒြပ်စင်တစ်ခု၏ flex-direction ပိုင်ဆိုင်မှုကို ကိုယ်စားပြုသော စာတန်း |
CSS ဗားရှင်း | CSS3 |
ဆက်စပ်စာမျက်နှာများ
CSS ရည်ညွှန်းချက်- flex-direction ပိုင်ဆိုင်မှု
HTML DOM STYLE အကိုးအကား- flex ပိုင်ဆိုင်မှု
HTML DOM STYLE အကိုးအကား- flexBasis ပိုင်ဆိုင်မှု
HTML DOM STYLE အကိုးအကား- flexFlow ပိုင်ဆိုင်မှု
HTML DOM STYLE အကိုးအကား- flexGrow ပိုင်ဆိုင်မှု
HTML DOM STYLE အကိုးအကား- flexShrink ပိုင်ဆိုင်မှု
HTML DOM STYLE အကိုးအကား- flexWrap ပိုင်ဆိုင်မှု
❮ စတိုင်အရာဝတ္ထု