ပုံစံ textDecorationLine Property
ဥပမာ
စာသားမှတဆင့် လိုင်းတစ်ခုဖြင့် အစိတ်အပိုင်းတစ်ခုကို ပြပါ-
document.getElementById("demo").style.textDecorationLine = "line-through";
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
TextDecorationLine ပိုင်ဆိုင်မှုသည် မည်သည့်မျဉ်းအမျိုးအစားကို သတ်မှတ်ပေးသည် သို့မဟုတ် ပြန်ပေးသည် ရှိပါက၊ အလှဆင်မှုတွင် ပါရှိမည်ဖြစ်သည်။
မှတ်ချက် ။
မှတ်ချက်- စာသားအောက်နှင့် အပေါ်မှာ မျဉ်းကြောင်းနှစ်ခုလုံးကို ပြသရန်အတွက် အောက်မျဉ်းကြောင်းနှင့် အထပ်လိုင်း ကဲ့သို့ တန်ဖိုးတစ်ခုထက်ပို၍လည်း ပေါင်းစပ်နိုင်သည် ။
Browser ပံ့ပိုးမှု
Property | |||||
---|---|---|---|---|---|
textDecorationLine | 57.0 | 79.0 | 36.0 6.0 Moz |
7.0 Webkit | 44.0 |
အထားအသို
textDecorationLine ပိုင်ဆိုင်မှုကို ပြန်ပေးပါ။
object.style.textDecorationLine
textDecorationLine ပိုင်ဆိုင်မှုကို သတ်မှတ်ပါ-
object.style.textDecorationLine = "none|underline|overline|line-through|initial|inherit"
အိမ်ခြံမြေတန်ဖိုးများ
Value | Description |
---|---|
none | Default value. Specifies no line for the text-decoration |
underline | Specifies that a line will be displayed under the text |
overline | Specifies that a line will be displayed over the text |
line-through | Specifies that a line will be displayed 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 ဗားရှင်း | CSS3 |
ဆက်စပ်စာမျက်နှာများ
CSS ရည်ညွှန်းချက်- စာသား-အလှဆင်-လိုင်းပိုင်ဆိုင်မှု
❮ စတိုင်အရာဝတ္ထု