CSS စာသား အလှဆင်ခြင်း ပိုင်ဆိုင်မှု
ဥပမာ
<h1>၊ <h2> နှင့် <h3> ဒြပ်စင်များအတွက် မတူညီသော စာသားအလှဆင်မှုများကို သတ်မှတ်ပါ-
h1 {
text-decoration: overline;
}
h2 {
text-decoration: line-through;
}
h3 {
text-decoration: underline;
}
h4 {
text-decoration: underline
overline;
}
အောက်တွင် နောက်ထပ် "စမ်းသုံးကြည့်ပါ" ဥပမာများ။
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
ပိုင်ဆိုင်မှု သည် text-decoration
စာသားသို့ ပေါင်းထည့်ထားသည့် အလှဆင်ခြင်းကို သတ်မှတ်ပေးပြီး၊ အတွက် အတိုကောက်ပိုင်ဆိုင်မှုတစ်ခုဖြစ်သည်-
- စာသားအလှဆင်လိုင်း (လိုအပ်သည်)
- စာသား-အလှဆင်-အရောင်
- စာသားအလှဆင်စတိုင်
မူလတန်ဖိုး: | လက်ရှိအရောင်အခဲမရှိပါ။ |
---|---|
အမွေဆက်ခံသည်- | မဟုတ်ဘူး |
သက်ဝင်လှုပ်ရှားနိုင်သော | မဟုတ်ဘူး ၊ တစ်ဦးချင်း ဂုဏ်သတ္တိတွေကို ကြည့်ပါ ။ ကာတွန်း အကြောင်းဖတ်ပါ။ |
ဗားရှင်း- | CSS1၊ CSS3 တွင် သက်တမ်းတိုးထားသည်။ |
JavaScript syntax- | အရာဝတ္ထု .style.textDecoration="underline" |
Browser ပံ့ပိုးမှု
ဇယားရှိ နံပါတ်များသည် ပိုင်ဆိုင်မှုကို အပြည့်အဝထောက်ခံသည့် ပထမဆုံးဘရောက်ဆာဗားရှင်းကို သတ်မှတ်ပေးသည်။
Property | |||||
---|---|---|---|---|---|
text-decoration | 1.0 | 3.0 | 1.0 | 1.0 | 3.5 |
CSS Syntax
text-decoration: text-decoration-line text-decoration-color
text-decoration-style|initial|inherit;
အိမ်ခြံမြေတန်ဖိုးများ
Value | Description |
---|---|
text-decoration-line | Sets the kind of text decoration to use (like underline, overline, line-through) |
text-decoration-color | Sets the color of the text decoration |
text-decoration-style | Sets the style of the text decoration (like solid, wavy, dotted, dashed, double) |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
နောက်ထပ် ဥပမာများ
ဥပမာ
နောက်ထပ် စာသားအလှဆင်ထည့်ပါ
h1 {
text-decoration: underline overline dotted red;
}
h2 {
text-decoration: underline overline wavy
blue;
}
ဆက်စပ်စာမျက်နှာများ
CSS သင်ခန်းစာ- CSS စာသား
HTML DOM ရည်ညွှန်း- textDecoration ပိုင်ဆိုင်မှု