CSS align-content Property
ဥပမာ
flex container ၏ အလယ်ဗဟိုဆီသို့ လိုင်းများကို ထုပ်ပိုးပါ-
div
{
width: 70px;
height: 300px;
border: 1px solid #c3c3c3;
display: flex;
flex-wrap: wrap;
align-content: center;
}
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
ပိုင်ဆိုင်မှုသည် flex-wrap ပိုင်ဆိုင်မှု ၏ align-content
အပြုအမူကို မွမ်းမံသည်
။ ၎င်းသည်
align-items နှင့်ဆင်တူသည် ၊ သို့သော် flex items များကိုချိန်ညှိမည့်အစား၊ ၎င်းသည် flex လိုင်းများကိုချိန်ညှိသည်။
မှတ်ချက်- ဤပိုင်ဆိုင်မှုအတွက် မည်သည့်အရာမဆို အကျိုးသက်ရောက်မှုရှိစေမည့် လိုင်းများစွာရှိရပါမည်။
အကြံပြုချက်- ပင်မဝင်ရိုးပေါ်ရှိ အရာများကို (အလျားလိုက်) ချိန်ညှိရန် မျှတသော -အကြောင်းအရာ ပိုင်ဆိုင်မှု ကို အသုံးပြု ပါ။
မူလတန်ဖိုး: | ဆန့် |
---|---|
အမွေဆက်ခံသည်- | မဟုတ်ဘူး |
သက်ဝင်လှုပ်ရှားနိုင်သော | မဟုတ်ဘူး ကာတွန်း အကြောင်းဖတ်ပါ။ |
ဗားရှင်း- | CSS3 |
JavaScript syntax- | အရာဝတ္ထု .style.alignContent="အလယ်" |
Browser ပံ့ပိုးမှု
ဇယားရှိ နံပါတ်များသည် ပိုင်ဆိုင်မှုကို အပြည့်အဝထောက်ခံသည့် ပထမဆုံးဘရောက်ဆာဗားရှင်းကို သတ်မှတ်ပေးသည်။
-webkit- ဖြင့်လိုက်သောနံပါတ်များသည် ရှေ့ဆက်တွဲဖြင့်လုပ်ဆောင်သော ပထမဆုံးဗားရှင်းကို သတ်မှတ်ပေးသည်။
Property | |||||
---|---|---|---|---|---|
align-content | 21.0 | 11.0 | 28.0 | 9.0 7.0 -webkit- |
12.1 |
CSS Syntax
align-content: stretch|center|flex-start|flex-end|space-between|space-around|initial|inherit;
အိမ်ခြံမြေတန်ဖိုးများ
Value | Description | Play it |
---|---|---|
stretch | Default value. Lines stretch to take up the remaining space | |
center | Lines are packed toward the center of the flex container | |
flex-start | Lines are packed toward the start of the flex container | |
flex-end | Lines are packed toward the end of the flex container | |
space-between | Lines are evenly distributed in the flex container | |
space-around | Lines are evenly distributed in the flex container, with half-size spaces on either end | |
space-evenly | Lines are evenly distributed in the flex container, with equal space around them | |
initial | Sets this property to its default value. Read about initial | |
inherit | Inherits this property from its parent element. Read about inherit |
ဆက်စပ်စာမျက်နှာများ
CSS ရည်ညွှန်းချက်- align-items ပိုင်ဆိုင်မှု
CSS အကိုးအကား- align-self ပိုင်ဆိုင်မှု
CSS ရည်ညွှန်းချက်- အကြောင်းအရာ ပိုင်ဆိုင်မှုကို မျှတစေသည် ။
HTML DOM ရည်ညွှန်းချက်- အကြောင်းအရာ ပိုင်ဆိုင်မှုကို ညှိပါ ။