从 Internet Explorer 中删除清除和显示密码图标 [英] Removing the clear and reveal password icons from Internet Explorer
问题描述
我有这样的设计,用户在 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
用于 >input type=password
但不幸的是,它什么也没做.我已经读过,揭示只能通过从系统中某个没有用的地方禁用它来删除.
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 对我有用
The following CSS worked for me
input::-ms-clear, input::-ms-reveal {
display: none;
}
参见::-ms-clear
和 ::-ms-reveal
获取额外信息.
See ::-ms-clear
and ::-ms-reveal
for extra information.
这篇关于从 Internet Explorer 中删除清除和显示密码图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!