ပုံစံ အကြမ်းထည် အကျယ် ပိုင်ဆိုင်မှု
ဥပမာ
<div> ဒြပ်စင်တစ်ခု၏ အကျယ်ကို ပြောင်းပါ-
document.getElementById("myDiv").style.outlineWidth = "10px";
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
outlineWidth ပိုင်ဆိုင်မှုသည် ဒြပ်စင်တစ်ဝိုက်ရှိ ကောက်ကြောင်း၏ အကျယ်ကို သတ်မှတ် သို့မဟုတ် ပြန်ပေးသည်။
ကောက်ကြောင်းတစ်ခုသည် ဒြပ်စင်တစ်ခုပတ်လည်ရှိ မျဉ်းတစ်ခုဖြစ်သည်။ ၎င်းကို ဒြပ်စင်၏အနားသတ်ပတ်လည်တွင် ပြသထားသည်။ သို့သော်လည်း နယ်စပ်ပိုင်ဆိုင်မှုနှင့် ကွဲပြားသည်။
ကောက်ကြောင်းသည် ဒြပ်စင်၏အတိုင်းအတာများ၏ အစိတ်အပိုင်းမဟုတ်ပါ၊ ထို့ကြောင့် ဒြပ်စင်၏ အကျယ်နှင့် အမြင့်ဂုဏ်သတ္တိများသည် ကောက်ကြောင်း၏ အကျယ်မပါဝင်ပါ။
Browser ပံ့ပိုးမှု
Property | |||||
---|---|---|---|---|---|
outlineWidth | Yes | Yes | Yes | Yes | Yes |
အထားအသို
အကြမ်းထည်အကျယ်ပိုင်ဆိုင်မှုကို ပြန်ပေးပါ-
object.style.outlineWidth
အကြမ်းထည်အကျယ်ကို သတ်မှတ်ပါ-
object.style.outlineWidth = "thin|medium|thick|length|initial|inherit"
အိမ်ခြံမြေတန်ဖိုးများ
Value | Description |
---|---|
thin | Defines a thin outline |
medium | Defines a medium outline. This is default |
thick | Defines a thick outline |
length | The width of the outline in length units |
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> ဒြပ်စင်တစ်ခု၏ အကျယ်ကို ပြောင်းပါ-
document.getElementById("myDiv").style.outlineWidth = "thick";
ဥပမာ
<div> ဒြပ်စင်တစ်ခု၏ အကျယ်ကို ပြန်ပေးပါ။
alert(document.getElementById("myDiv").style.outlineWidth);
ဆက်စပ်စာမျက်နှာများ
CSS သင်ခန်းစာ- CSS အကြမ်းဖျင်း
CSS ရည်ညွှန်းချက်- အကြမ်းထည် ပိုင်ဆိုင်မှု
HTML DOM ရည်ညွှန်းချက်- အကြမ်းထည် ပိုင်ဆိုင်မှု
❮ စတိုင်အရာဝတ္ထု