CSS flex-direction ပိုင်ဆိုင်မှု
ဥပမာ
<div> ဒြပ်စင်အတွင်းရှိ ပြောင်းလွယ်ပြင်လွယ်ရှိသော အရာများ၏ ဦးတည်ချက်ကို ပြောင်းပြန်အစီအစဥ်ဖြင့် သတ်မှတ်ပါ-
div
{
display: flex;
flex-direction: row-reverse;
}
အကြံပြုချက်- အောက်ပါ "သင်ကိုယ်တိုင် ကြိုးစားပါ" နောက်ထပ် ဥပမာများ။
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
ပိုင်ဆိုင်မှု သည် flex-direction
ပြောင်းလွယ်ပြင်လွယ်ရှိသော အရာများ၏ ဦးတည်ရာကို သတ်မှတ်သည်။
မှတ်ချက်- ဒြပ်စင်သည် ပြောင်းလွယ်ပြင်လွယ်ရှိသော အရာမဟုတ်ပါက၊ flex-direction
ပိုင်ဆိုင်မှုသည် အကျိုးသက်ရောက်မှု မရှိပါ။
မူလတန်ဖိုး: | အတန်း |
---|---|
အမွေဆက်ခံသည်- | မဟုတ်ဘူး |
သက်ဝင်လှုပ်ရှားနိုင်သော | မဟုတ်ဘူး ကာတွန်း အကြောင်းဖတ်ပါ။ |
ဗားရှင်း- | CSS3 |
JavaScript syntax- | အရာဝတ္ထု .style.flexDirection="column-reverse" |
Browser ပံ့ပိုးမှု
ဇယားရှိ နံပါတ်များသည် ပိုင်ဆိုင်မှုကို အပြည့်အဝထောက်ခံသည့် ပထမဆုံးဘရောက်ဆာဗားရှင်းကို သတ်မှတ်ပေးသည်။
-webkit- သို့မဟုတ် -moz- ဖြင့်လိုက်သောနံပါတ်များကို ရှေ့ဆက်တွဲဖြင့်လုပ်ဆောင်သော ပထမဆုံးဗားရှင်းကို သတ်မှတ်ပေးသည်။
Property | |||||
---|---|---|---|---|---|
flex-direction | 29.0 21.0 -webkit- |
11.0 | 28.0 18.0 -moz- |
9.0 6.1 -webkit- |
17.0 |
CSS Syntax
flex-direction: row|row-reverse|column|column-reverse|initial|inherit;
အိမ်ခြံမြေတန်ဖိုးများ
Value | Description | Play it |
---|---|---|
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
နှင့် တွဲ သုံး ခြင်း-
.flex-container {
display: flex;
flex-direction: row;
}
/*
Responsive layout - makes a one column layout instead of a two-column layout
*/
@media (max-width: 800px) {
.flex-container {
flex-direction: column;
}
}
ဆက်စပ်စာမျက်နှာများ
CSS သင်ခန်းစာ- CSS Flexible Box
CSS ရည်ညွှန်းချက်- flex-flow ပိုင်ဆိုင်မှု
CSS ရည်ညွှန်းချက်- flex-wrap ပိုင်ဆိုင်မှု
CSS ရည်ညွှန်းချက်- flex ပိုင်ဆိုင်မှု
CSS ရည်ညွှန်းချက်- flex-grow ပိုင်ဆိုင်မှု
CSS ရည်ညွှန်းချက်- flex-shrink ပိုင်ဆိုင်မှု
CSS ရည်ညွှန်းချက်- flex-basis ပိုင်ဆိုင်မှု
HTML DOM ရည်ညွှန်းချက်- flexDirection ပိုင်ဆိုင်မှု