ပုံစံ caretColor အိမ်ခြံမြေ
ဥပမာ
ထည့်သွင်းအကွက်အတွင်း ကာဆာ၏အရောင်ကို အနီရောင်အဖြစ် သတ်မှတ်ပါ-
document.getElementById("input1").style.caretColor = "red";
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
caretColor ပိုင်ဆိုင်မှုသည် သွင်းအားစုများ၊ စာသားဧရိယာများ သို့မဟုတ် တည်းဖြတ်နိုင်သော မည်သည့်ဒြပ်စင်များတွင် cursor (caret) ၏အရောင်ကို သတ်မှတ်သည်။
Browser ပံ့ပိုးမှု
Property | |||||
---|---|---|---|---|---|
caretColor | 57.0 | 79.0 | 53.0 | 11.1 | 44.0 |
အထားအသို
စောင့်ရှောက်မှုအရောင် ပိုင်ဆိုင်မှုကို ပြန်ပေးပါ-
object.style.caretColor
caretColor ပိုင်ဆိုင်မှုကို သတ်မှတ်ပါ-
object.style.caretColor = "auto|color|initial|inherit"
အိမ်ခြံမြေတန်ဖိုးများ
Value | Description |
---|---|
auto | Default. Browsers uses the currentColor for the caret |
color | Specifies a color to use for the caret. All legal color values can be used (rgb, hex, named-color, etc). For more information on legal values, read our CSS Colors Tutorial |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
နည်းပညာဆိုင်ရာအသေးစိတ်
မူလတန်ဖိုး: | အော်တို |
---|---|
ပြန်ပို့တန်ဖိုး- | ဒြပ်စင်တစ်ခု၏ caret အရောင်ကို ကိုယ်စားပြုသော စာတန်း |
CSS ဗားရှင်း | CSS3 |
ဆက်စပ်စာမျက်နှာများ
CSS ရည်ညွှန်းချက်- ရောင်စုံ ပိုင်ဆိုင်မှု
❮ စတိုင်အရာဝတ္ထု