css样式,如何修改input输入框的光标颜色?
语法
/* Keyword values */
caret-color: auto;
caret-color: transparent;
caret-color: currentColor;
/* <color> values */
caret-color: red;
caret-color: #5729e9;
caret-color: rgb(0, 200, 0);
caret-color: hsla(228, 4%, 24%, 0.8);
示例
- html
<input />
- css
input {
caret-color: red;
}
ref

本作品采用知识共享署名-非商业性使用-禁止演绎 4.0 国际许可协议进行许可。
目录
评论暂时关闭了,可以过段时间再试