How can I disable the clear button that IE10 inserts into textboxes?

后端 未结 5 1826
慢半拍i
慢半拍i 2020-12-04 21:29

How can I disable the new functionality in Internet Explorer 10 that shows a little \'x\' in a textbox when it\'s focused and I have content in it?

5条回答
  •  一向
    一向 (楼主)
    2020-12-04 22:10

    This is how I did it

    input[type=text]::-ms-clear
    {
        display: none;
    }
    

提交回复
热议问题