Remove IE10's “clear field” X button on certain inputs?

前端 未结 6 2269
故里飘歌
故里飘歌 2020-11-22 15:51

It\'s a useful feature, to be sure, but is there any way to disable it?
For instance, if the form is a single text field and already has a \"clear\" button beside it, it

6条回答
  •  逝去的感伤
    2020-11-22 16:07

    You should style for ::-ms-clear (http://msdn.microsoft.com/en-us/library/windows/apps/hh465740.aspx):

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

    And you also style for ::-ms-reveal pseudo-element for password field:

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

提交回复
热议问题