CSS align-self Property
ဥပမာ
ပြောင်းလွယ်ပြင်လွယ်ရှိသော ဒြပ်စင်အတွင်းရှိ အရာများထဲမှ တစ်ခုအတွက် ချိန်ညှိမှုများကို ဗဟိုပြုပါ-
#myBlueDiv
{
align-self: center;
}
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
ပိုင်ဆိုင်မှု သည် align-self
ပြောင်းလွယ်ပြင်လွယ်ရှိသော ကွန်တိန်နာအတွင်း ရွေးချယ်ထားသော အရာအတွက် ချိန်ညှိမှုကို သတ်မှတ်သည်။
မှတ်ချက် ။ _ align-self
_
_
မူလတန်ဖိုး: | အော်တို |
---|---|
အမွေဆက်ခံသည်- | မဟုတ်ဘူး |
သက်ဝင်လှုပ်ရှားနိုင်သော | မဟုတ်ဘူး ကာတွန်း အကြောင်းဖတ်ပါ။ |
ဗားရှင်း- | CSS3 |
JavaScript syntax- | အရာဝတ္ထု .style.alignSelf="center" |
Browser ပံ့ပိုးမှု
ဇယားရှိ နံပါတ်များသည် ပိုင်ဆိုင်မှုကို အပြည့်အဝထောက်ခံသည့် ပထမဆုံးဘရောက်ဆာဗားရှင်းကို သတ်မှတ်ပေးသည်။
နံပါတ်များ -webkit- နောက်တွင် ရှေ့ဆက်တွဲဖြင့် လုပ်ဆောင်သော ပထမဆုံးဗားရှင်းကို သတ်မှတ်ပါ။
Property | |||||
---|---|---|---|---|---|
align-self | 21.0 | 11.0 | 20.0 | 9.0 7.0 -webkit- |
12.1 |
CSS Syntax
align-self: auto|stretch|center|flex-start|flex-end|baseline|initial|inherit;
အိမ်ခြံမြေတန်ဖိုးများ
Value | Description | Play it |
---|---|---|
auto | Default. The element inherits its parent container's align-items property, or "stretch" if it has no parent container | |
stretch | The element is positioned to fit the container | |
center | The element is positioned at the center of the container | |
flex-start | The element is positioned at the beginning of the container | |
flex-end | The element is positioned at the end of the container | |
baseline | The element is positioned at the baseline of the container | |
initial | Sets this property to its default value. Read about initial | |
inherit | Inherits this property from its parent element. Read about inherit |
ဆက်စပ်စာမျက်နှာများ
CSS အကိုးအကား- ညှိ-အကြောင်းအရာ ပိုင်ဆိုင်မှု
CSS ရည်ညွှန်းချက်- align-items ပိုင်ဆိုင်မှု
HTML DOM ရည်ညွှန်းချက်- alignSelf property