如何在IE中的输入字段中更改文本光标的颜色?
问题描述:
根据我所看到的,在Firefox和Chrome中,输入字段中文本光标的颜色将更改为colorcss属性的值。然而在IE它没有任何效果。在IE中有没有办法实现这个效果?
From what I saw, in Firefox and Chrome, the color of the text cursor in an input field changes to the value of the "color" css property. However in IE it has no effect whatsoever. Is there any way to achieve this effect in IE?
答
IE上的输入文本光标的颜色总是反向的背景颜色。所以你不能在IE上。
The color of the text cursor in an input on IE is always the inverse of the background color. So you can't on IE.
这也是W3C没有提供的,所以不要指望支持在任何地方,如果有,那么它只是一个神器: )
This is also unspecced by W3C so don't expect support to be anywhere, if there is, then it's merely an artifact :-)