我希望隐藏闪烁的文本光标。有webkit吗?我希望通过CSS或JS来做到这一点。我想定位一个类或ID
答案 0 :(得分:0)
应用透明文字颜色和文字阴影颜色。
input {
width: 100px;
border: 1px solid black;
padding: 10px;
}
input.masked {
color: transparent;
text-shadow: 0 0 0 red;
}

<input type="text" />
<input class="masked" type="text" />
&#13;