ပုံစံ textDecoration Property
ဥပမာ
အစိတ်အပိုင်းတစ်ခုအတွက် စာသားအလှဆင်ခြင်းကို သတ်မှတ်ပါ-
document.getElementById("demo").style.textDecoration = "underline overline";
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
စာသားအလှဆင်ခြင်းပိုင်ဆိုင်မှုသည် စာသားတစ်ခုအတွက် သတ္တုရိုင်းတစ်ခုနောက်ထပ်အလှဆင်မှုများကို သတ်မှတ်ပေးသည် သို့မဟုတ် ပြန်ပေးသည်။
အကြံပြုချက်- ဒြပ်စင်တစ်ခုအတွက် အလှဆင် အမျိုးအစား တစ်ခုထက်ပိုသော သတ်မှတ်ရန်၊ နေရာ ခြားထားသော အလှဆင် အမျိုးအစားများ စာရင်းကို သတ်မှတ်ပါ။
Browser ပံ့ပိုးမှု
Property | |||||
---|---|---|---|---|---|
textDecoration | Yes | Yes | Yes | Yes | Yes |
အထားအသို
စာသားအလှဆင်ခြင်း ပိုင်ဆိုင်မှုကို ပြန်ပေးပါ။
object.style.textDecoration
စာသားအလှဆင်ခြင်းပိုင်ဆိုင်မှုကို သတ်မှတ်ပါ-
object.style.textDecoration = "none|underline|overline|line-through|blink|initial|inherit"
အိမ်ခြံမြေတန်ဖိုးများ
Value | Description |
---|---|
none | Defines a normal text. This is default |
underline | Defines a line under the text |
overline | Defines a line over the text |
line-through | Defines a line through the text |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
နည်းပညာဆိုင်ရာအသေးစိတ်
မူလတန်ဖိုး: | မရှိ |
---|---|
ပြန်ပို့တန်ဖိုး- | စာသားတွင် ထည့်သွင်းအလှဆင်ခြင်းကို ကိုယ်စားပြုသော စာကြောင်းတစ်ခု |
CSS ဗားရှင်း | CSS1 |
နောက်ထပ် ဥပမာများ
ဥပမာ
ဒြပ်စင်တစ်ခု၏ စာသားအလှဆင်ခြင်းကို ပြန်ပေးပါ။
alert(document.getElementById("demo").style.textDecoration);
ဆက်စပ်စာမျက်နှာများ
CSS သင်ခန်းစာ- CSS စာသား
CSS ရည်ညွှန်းချက်- စာသားအလှဆင်ခြင်း ပိုင်ဆိုင်မှု
❮ စတိုင်အရာဝတ္ထု