CSS改变插入光标颜色caret-color

CSS代码:
input {
    color: #333;
    caret-color: red;
}
@supports (-webkit-mask: none) and (not (caret-color: red)) {
    input { color: red; }
    input::first-line { color: #333; }
}
HTML代码:
<input value="混合兼容处理">

 

posted @ 2018-06-14 16:22  风吹麦浪打  阅读(135)  评论(0编辑  收藏  举报