CSS အနားသတ်-ညာဘက် ပိုင်ဆိုင်မှု
ဥပမာ
<p> ဒြပ်စင်အတွက် ညာဘက်အနားသတ်ကို 150 ပစ်ဇယ်အဖြစ် သတ်မှတ်ပါ-
p.ex1 {
margin-right: 150px;
}
အောက်တွင် နောက်ထပ် "စမ်းသုံးကြည့်ပါ" ဥပမာများ။
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
ပိုင်ဆိုင်မှု သည် margin-right
ဒြပ်စင်တစ်ခု၏ ညာဘက်အနားသတ်ကို သတ်မှတ်ပေးသည်။
မှတ်ချက်- အနုတ်တန်ဖိုးများကို ခွင့်ပြုထားသည်။
မူလတန်ဖိုး: | ၀ယ်တယ်။ |
---|---|
အမွေဆက်ခံသည်- | မဟုတ်ဘူး |
သက်ဝင်လှုပ်ရှားနိုင်သော | ဟုတ်ကဲ့၊ တစ်ဦးချင်းဂုဏ်သတ္တိများကိုကြည့်ပါ ။ ကာတွန်း အကြောင်းဖတ်ပါ။ |
ဗားရှင်း- | CSS1 |
JavaScript syntax- | အရာဝတ္ထု .style.marginRight="100px" |
Browser ပံ့ပိုးမှု
ဇယားရှိ နံပါတ်များသည် ပိုင်ဆိုင်မှုကို အပြည့်အဝထောက်ခံသည့် ပထမဆုံးဘရောက်ဆာဗားရှင်းကို သတ်မှတ်ပေးသည်။
Property | |||||
---|---|---|---|---|---|
margin-right | 1.0 | 6.0 | 1.0 | 1.0 | 3.5 |
CSS Syntax
margin-right: length|auto|initial|inherit;
အိမ်ခြံမြေတန်ဖိုးများ
Value | Description | Play it |
---|---|---|
length | Specifies a fixed right margin in px, pt, cm, etc. Default value is 0px. Read about length units | |
% | Specifies a right margin in percent of the width of the containing element | |
auto | The browser calculates a right margin | |
initial | Sets this property to its default value. Read about initial | |
inherit | Inherits this property from its parent element. Read about inherit |
နောက်ထပ် ဥပမာများ
ဥပမာ
<p> ဒြပ်စင်တစ်ခုအတွက် ညာဘက်အနားသတ်ကို ကွန်တိန်နာ၏ အကျယ်၏ 50% သို့ သတ်မှတ်ပါ-
p.ex1 {
margin-right: 50%;
}
ဥပမာ
<p> ဒြပ်စင်တစ်ခုအတွက် ညာဘက်အနားသတ်ကို 15 em သို့ သတ်မှတ်ပါ-
p.ex1 {
margin-right: 15em;
}
ဆက်စပ်စာမျက်နှာများ
CSS သင်ခန်းစာ- CSS Margin
HTML DOM ရည်ညွှန်းချက်- marginRight ပိုင်ဆိုင်မှု