如何在IE中的输入字段中更改文本光标的颜色? [英] How do I change the color of the text cursor in an input field in IE?

查看:431
本文介绍了如何在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 :-)

这篇关于如何在IE中的输入字段中更改文本光标的颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆