CSS ရှိ flex အတိုကောက် property
flex property သည် grow၊ shrink နှင့် basis properties များအတွက်
အတိုကောက်တစ်ခုဖြစ်သည်။
အတိုကောက် properties ၏ အစီအစဉ်သည် အရေးပါပြီး
၎င်းသည် အောက်ပါအတိုင်းဖြစ်သည်: flex-grow, flex-shrink,
flex-basis။ Properties များကို
အဆုံးမှ ချန်လှပ်ထားနိုင်ပြီး၊ ထိုသို့ဖြစ်လျှင် ၎င်းတို့သည်
စံထားချက်တန်ဖိုးကို ယူပါမည်။
အောက်ပါကုဒ်ကို flex အတိုကောက် property ဖြင့်
ပြန်ရေးပါ:
.child {
flex-basis: 100px;
flex-grow: 1;
flex-shrink: 2;
}
အောက်ပါကုဒ်ကို flex အတိုကောက် property ဖြင့်
ပြန်ရေးပါ:
.child {
flex-shrink: 0.5;
flex-grow: 2;
}
အောက်ပါကုဒ်ကို flex အတိုကောက် property ဖြင့်
ပြန်ရေးပါ:
.child {
flex-shrink: 0.5;
flex-grow: 1;
}
အောက်ပါကုဒ်ကို အတိုကောက်ယူထားသော properties များဖြင့် ပြန်ရေးပါ:
.child {
flex: 1 2 200px;
}
အောက်ပါကုဒ်ကို အတိုကောက်ယူထားသော properties များဖြင့် ပြန်ရေးပါ:
.child {
flex: 2 0.7;
}
အောက်ပါကုဒ်ကို အတိုကောက်ယူထားသော properties များဖြင့် ပြန်ရေးပါ:
.child {
flex: 3;
}