ပုံစံ flexShrink အိမ်ခြံမြေ
ဥပမာ
အပြာရောင် DIV ဒြပ်စင်အား အခြားပြောင်းလွယ်ပြင်လွယ်ရှိသော အရာများထက် ငါးဆပို၍ ကျုံ့ပါစေ။
document.getElementById("myBlueDiv".style.flexShrink = "5";
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
flexShrink ပိုင်ဆိုင်မှုသည် တူညီသောကွန်တိန်နာအတွင်းရှိ အခြားပြောင်းလွယ်ပြင်လွယ်ရှိသော အရာများနှင့် ဆက်စပ်ပစ္စည်း မည်ကဲ့သို့ ကျုံ့မည်ကို သတ်မှတ်သည်။
မှတ်ချက်- ဒြပ်စင်သည် ပြောင်းလွယ်ပြင်လွယ်ရှိသောအရာမဟုတ်ပါက၊ flexShrink ပိုင်ဆိုင်မှုသည် အကျိုးသက်ရောက်မှုမရှိပါ။
Browser ပံ့ပိုးမှု
Property | |||||
---|---|---|---|---|---|
flexShrink | Yes | 11.0 | Yes | 9.0 | Yes |
အထားအသို
flexShrink ပိုင်ဆိုင်မှုကို ပြန်ပေးပါ။
object.style.flexShrink
flexShrink ပိုင်ဆိုင်မှုကို သတ်မှတ်ပါ-
object.style.flexShrink = "number|initial|inherit"
အိမ်ခြံမြေတန်ဖိုးများ
Value | Description |
---|---|
number | A number specifying how much the item will shrink relative to the rest of the flexible items. Default value is 0 |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
နည်းပညာဆိုင်ရာအသေးစိတ်
မူလတန်ဖိုး: | ၁ |
---|---|
ပြန်ပို့တန်ဖိုး- | ဒြပ်စင်တစ်ခု၏ ကွေးညွှတ်ကျုံ့သွားမှုကို ကိုယ်စားပြုသည့် စာကြောင်းတစ်ခု |
CSS ဗားရှင်း | CSS3 |
ဆက်စပ်စာမျက်နှာများ
CSS ရည်ညွှန်းချက်- flex-shrink ပိုင်ဆိုင်မှု
HTML DOM STYLE အကိုးအကား- flex ပိုင်ဆိုင်မှု
HTML DOM STYLE အကိုးအကား- flexBasis ပိုင်ဆိုင်မှု
HTML DOM STYLE အကိုးအကား- flexDirection ပိုင်ဆိုင်မှု
HTML DOM STYLE အကိုးအကား- flexFlow ပိုင်ဆိုင်မှု
HTML DOM STYLE အကိုးအကား- flexGrow ပိုင်ဆိုင်မှု
HTML DOM STYLE အကိုးအကား- flexWrap ပိုင်ဆိုင်မှု
❮ စတိုင်အရာဝတ္ထု