CSS min-width ပိုင်ဆိုင်မှု
ဥပမာ
<span> ဒြပ်စင်တစ်ခု၏ အနိမ့်ဆုံးအကျယ်ကို 500 ပစ်ဇယ်အဖြစ် သတ်မှတ်ပါ-
span.ex1
{
min-width: 500px;
}
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
ပိုင်ဆိုင်မှု သည် min-width
ဒြပ်စင်တစ်ခု၏ အနည်းဆုံးအကျယ်ကို သတ်မှတ်သည်။
အကြောင်းအရာသည် အနိမ့်ဆုံးအကျယ်ထက် သေးငယ်ပါက၊ အနိမ့်ဆုံးအကျယ်ကို အသုံးပြုပါမည်။
အကြောင်းအရာသည် အနိမ့်ဆုံးအကျယ်ထက် ပိုကြီးပါက၊
min-width
ပိုင်ဆိုင်မှုသည် အကျိုးသက်ရောက်မှုမရှိပါ။
မှတ်ချက်- ၎င်းသည်
width ပိုင်ဆိုင်မှုတန်ဖိုးထက် သေးငယ်သွားခြင်းမှ
တားဆီးသည် min-width
။
မူလတန်ဖိုး: | ၀ယ်တယ်။ |
---|---|
အမွေဆက်ခံသည်- | မဟုတ်ဘူး |
သက်ဝင်လှုပ်ရှားနိုင်သော | ဟုတ်ကဲ့၊ တစ်ဦးချင်းဂုဏ်သတ္တိများကိုကြည့်ပါ ။ ကာတွန်း အကြောင်းဖတ်ပါ။ |
ဗားရှင်း- | CSS2 |
JavaScript syntax- | အရာဝတ္ထု .style.minWidth="400px" |
Browser ပံ့ပိုးမှု
ဇယားရှိ နံပါတ်များသည် ပိုင်ဆိုင်မှုကို အပြည့်အဝထောက်ခံသည့် ပထမဆုံးဘရောက်ဆာဗားရှင်းကို သတ်မှတ်ပေးသည်။
Property | |||||
---|---|---|---|---|---|
min-width | 1.0 | 7.0 | 1.0 | 2.0.2 | 4.0 |
CSS Syntax
min-width: length|initial|inherit;
အိမ်ခြံမြေတန်ဖိုးများ
Value | Description | Play it |
---|---|---|
length | Default value is 0. Defines the minimum width in px, cm, etc. Read about length units | |
% | Defines the minimum width in percent of the containing block | |
initial | Sets this property to its default value. Read about initial | |
inherit | Inherits this property from its parent element. Read about inherit |
ဆက်စပ်စာမျက်နှာများ
CSS သင်ခန်းစာ- CSS အမြင့်နှင့် အနံ
CSS ရည်ညွှန်းချက်- အမြင့်ဆုံးအကျယ်ပိုင်ဆိုင်မှု
HTML DOM ရည်ညွှန်းချက်- minWidth ပိုင်ဆိုင်မှု