caretColor 属性指定输入、文本区域或任何可编辑元素中光标(插入符号)的颜色。
Property | |||||
---|---|---|---|---|---|
caretColor | 57.0 | 79.0 | 53.0 | 11.1 | 44.0 |
返回 caretColor 属性:
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 |
默认值: | 汽车 |
---|---|
返回值: | 一个字符串,表示元素的插入符号颜色 |
CSS版本 | CSS3 |
CSS 参考:插入符号颜色属性
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!