ပုံစံ minHeight အိမ်ခြံမြေ
ဥပမာ
<div> ဒြပ်စင်တစ်ခု၏ အနိမ့်ဆုံးအမြင့်ကို သတ်မှတ်ပါ-
document.getElementById("myDIV").style.minHeight = "100px";
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
minHeight ပိုင်ဆိုင်မှုသည် ဒြပ်စင်တစ်ခု၏ အနိမ့်ဆုံးအမြင့်ကို သတ်မှတ်ပေးသည် သို့မဟုတ် ပြန်ပေးသည်။
minHeight ပိုင်ဆိုင်မှုသည် ပိတ်ဆို့အဆင့်ဒြပ်စင်များ သို့မဟုတ် အကြွင်းမဲ့ သို့မဟုတ် ပုံသေအနေအထားရှိသော ဒြပ်စင်များပေါ်တွင်သာ သက်ရောက်မှုရှိသည်။
အကြံပြုချက်- ဒြပ်စင်တစ်ခု၏အမြင့်ဆုံးအမြင့်ကို သတ်မှတ်ရန် သို့မဟုတ် ပြန်ပေးရန်၊ maxHeight ပိုင်ဆိုင်မှုကို အသုံးပြုပါ။
Browser ပံ့ပိုးမှု
Property | |||||
---|---|---|---|---|---|
minHeight | Yes | Yes | Yes | Yes | Yes |
အထားအသို
minHeight ပိုင်ဆိုင်မှုကို ပြန်ပေးပါ။
object.style.minHeight
minHeight ကို သတ်မှတ်ပါ-
object.style.minHeight = "length|%|initial|inherit"
အိမ်ခြံမြေတန်ဖိုးများ
Value | Description |
---|---|
length | Defines the minimum height in length units. Default is 0 |
% | Defines the minimum height in % of the parent element |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
နည်းပညာဆိုင်ရာအသေးစိတ်
မူလတန်ဖိုး: | ၀ယ်တယ်။ |
---|---|
ပြန်ပို့တန်ဖိုး- | ဒြပ်စင်တစ်ခု၏ အနိမ့်ဆုံးအမြင့်ကို ကိုယ်စားပြုသော စာကြောင်းတစ်ခု |
CSS ဗားရှင်း | CSS2 |
နောက်ထပ် ဥပမာများ
ဥပမာ
<div> ဒြပ်စင်တစ်ခု၏ အနည်းဆုံး အမြင့်ကို ပြန်ပေးပါ။
alert(document.getElementById("myDiv").style.minHeight);
ဆက်စပ်စာမျက်နှာများ
CSS သင်ခန်းစာ- CSS Dimension
CSS ရည်ညွှန်းချက်- အနိမ့်အမြင့် ပိုင်ဆိုင်မှု
❮ စတိုင်အရာဝတ္ထု