ပုံစံ စာသား Shadow Property
ဥပမာ
စာသားတစ်ခုသို့ အရိပ်ထည့်ပါ
document.getElementById("demo").style.textShadow = "5px 5px 1px #ff0000, 10px 10px 1px #0000ff";
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
TextShadow ပိုင်ဆိုင်မှုသည် စာသားတစ်ခုအတွက် သတ္တုရိုင်းတစ်ခုထက်ပိုသော အရိပ်သက်ရောက်မှုများကို သတ်မှတ်ပေးသည် သို့မဟုတ် ပြန်ပေးသည်။
Browser ပံ့ပိုးမှု
Property | |||||
---|---|---|---|---|---|
textShadow | Yes | 10.0 | Yes | Yes | Yes |
အထားအသို
textShadow ပိုင်ဆိုင်မှုကို ပြန်ပေးပါ။
object.style.textShadow
textShadow ပိုင်ဆိုင်မှုကိုသတ်မှတ်ပါ-
object.style.textShadow = "none|h-shadow v-shadow blur color|initial|inherit"
မှတ်ချက် ။ ပိုင်ဆိုင်မှုသည် အလျားတန်ဖိုး 2 သို့မဟုတ် 3 နှင့် စိတ်ကြိုက်အရောင်တစ်ခုစီဖြင့် သတ်မှတ်ထားသည့် အရိပ်များကော်မာ-ခြားထားသောစာရင်းတစ်ခုဖြစ်သည်။ ချန်လှပ်ထားသော အရှည်များမှာ 0 ဖြစ်သည်။
အိမ်ခြံမြေတန်ဖိုးများ
Value | Description |
---|---|
none | No shadow is drawn. This is default |
h-shadow | Required. The position of the horizontal shadow. Negative values are allowed |
v-shadow | Required. The position of the vertical shadow. Negative values are allowed |
blur | Optional. The blur distance |
color | Optional. The color of the shadow. Look at CSS Color Values for a complete list of possible color values |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
နည်းပညာဆိုင်ရာအသေးစိတ်
မူလတန်ဖိုး: | မရှိ |
---|---|
ပြန်ပို့တန်ဖိုး- | ဒြပ်စင်၏ စာသားအတွက် အသုံးပြုသည့် အရိပ်သက်ရောက်မှုများစာရင်းကို ကော်မာခွဲထားသော ကိုယ်စားပြုသည့် စာကြောင်းတစ်ခု |
CSS ဗားရှင်း | CSS3 |
နောက်ထပ် ဥပမာများ
ဥပမာ
စာသားအရိပ်ကို ပြန်ပေးပါ။
alert(document.getElementById("myP").style.textShadow);
ဆက်စပ်စာမျက်နှာများ
CSS သင်ခန်းစာ- CSS3 စာသားအကျိုးသက်ရောက်မှု များ
CSS ရည်ညွှန်းချက်- စာသားအရိပ် ပိုင်ဆိုင်မှု
❮ စတိုင်အရာဝတ္ထု