Internet Explorer 10 Windows 8删除文本输入和密码操作图标

Internet Explorer 10 Windows 8删除文本输入和密码操作图标

问题描述:

我在Windows 8上的Internet Explorer 10中测试高度自定义的Web应用程序,因为它是一个即将发布的版本,并且可能会在某天使用我的应用程序。从应用程序中查看一些文本输入控件的示例截图:

I am testing a highly-customized web application in Internet Explorer 10 on Windows 8, since it is an up and coming release, and will likely be using my application some day. Take a look at this sample screenshot of some text input controls from the application:

有一种方法,无论是在HTML或CSS中,删除位于右侧的操作图标文本和密码输入控件?

Is there a way, either within HTML or CSS, to remove the action icons that are located to the right of the text and password input controls?

感谢您的时间。

p>您需要使用 -ms-clear伪元素。并使用 -ms-reveal 密码框。

You need to use the -ms-clear pseudo-element. And use -ms-reveal for the password box.

这样做:

  ::-ms-clear {
      display: none;
  }