隐藏iOS设备上的闪烁文本光标

时间:2017-09-06 21:57:23

标签: javascript ios css

我希望隐藏闪烁的文本光标。有webkit吗?我希望通过CSS或JS来做到这一点。我想定位一个类或ID

1 个答案:

答案 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;
&#13;
&#13;