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

前端 未结 6 2328
故里飘歌
故里飘歌 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:30

    Style the ::-ms-clear pseudo-element for the box:

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

提交回复
热议问题