从IE10中删除清除并显示密码图标 [英] Removing clear and reveal password icons from IE10
问题描述
我有这个设计,用户在 input type = text
中输入一些文本,并通过jQuery验证。现在当用户输入一些数据时,IE10显示一个 X
符号来清除文本框,但是,通过设计它与定制设计 X
图像,并且眼睛图标与密码字段的自定义设计重叠。
I have this design where the user inputs some text in input type=text
and it is validated via jQuery. Now when user inputs some data, IE10 shows an X
sign to clear text box however, by design it overlaps the custom designed X
image and also the eye icon overlaps the custom design of the password field.
我已尝试使用 :: - ms-clear
输入 input type = text 和
:: - ms-reveal
代表输入类型=密码
,但不幸的是,没有什么。我已经阅读,显示只能通过禁用它从系统中的某处是没有用的删除。
I've tried using ::-ms-clear
for input type=text
and ::-ms-reveal
for input type=password
but unfortunately, it does nothing at all. I have read that reveal can only be removed by disabling it from somewhere in system which is of no use.
任何人都可以帮助我或指示我解决这个问题,或告诉我如何解决这个问题。
Can anyone please help me or direct me to fix this issue or tell me how this issue can be solved?
推荐答案
两个问题。首先,您确定CSS是正确的,因为以下CSS适用于我:
Two questions. First, are you sure your CSS is correct as the following CSS works for me:
::-ms-reveal {
display: none;
}
第二个问题:在开发者工具下运行IE10或IE9以下版本的IE10。如果是,此选择器似乎不工作,IE10仍然插入密码眼。我正在寻找解决这个问题的现在。
Second question: Are you running IE10 in IE9 mode or below under Developer Tools. If so, this selector doesn't appear to work and IE10 still inserts the password eye. I'm looking for a resolution to that issue now.
这篇关于从IE10中删除清除并显示密码图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!