Hide text field blinking cursor in IE or even chan

2019-03-03 08:26发布

How to hide input field blinking cursor in IE.

This is not duplicate since there are many similar question on but so far i have seen does not works in IE.

When I simply use this css it works fine chrome and Firefox but in IE it only hides character not blinking cursor.

.hideChar{
   color: white !important;
}

At the same time I don't want to do blur or change cursor position because in input field value is continuously coming I just want to hide that character and cursor not alter value or cursor position.

1条回答
Melony?
2楼-- · 2019-03-03 09:08

I got the same problem and here is your solution Write pointer-events: none; CSS property for that input field.

Here is the solution http://jsfiddle.net/hqBsW/488/

In this example, this readonly input field will not show blink cursor in the IE browser.

查看更多
登录 后发表回答