在IE中隐藏文本字段闪烁光标,甚至将闪烁的光标颜色更改为白色 [英] Hide text field blinking cursor in IE or even change blinking cursor color to white
问题描述
如何在IE中隐藏输入字段闪烁光标。
How to hide input field blinking cursor in IE.
这是不重复的,因为有很多类似的问题,但到目前为止,我已经看到在IE中不起作用。
This is not duplicate since there are many similar question on but so far i have seen does not works in IE.
当我简单地使用这个css时,它可以很好地使用Chrome和Firefox,但在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.
推荐答案
我得到了同样的问题,这是你的解决方案
写指针 - 事件:无;
该输入字段的CSS属性。
I got the same problem and here is your solution
Write pointer-events: none;
CSS property for that input field.
以下是 http://jsfiddle.net/hqBsW/488/ 的解决方案
在此示例中,此只读输入字段不会在IE浏览器中显示闪烁光标。
In this example, this readonly input field will not show blink cursor in the IE browser.
这篇关于在IE中隐藏文本字段闪烁光标,甚至将闪烁的光标颜色更改为白色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!