Remove IE 10 Clear Button From Input Field

谁都会走 提交于 2019-12-22 17:59:26

问题


On all my inputs on my site, the IE 10 Clear button is getting in the way when I try to have a Kendo Numeric Textbox in the input.

I have looked it up here, and every single question says this is what I should do in my CSS:

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

However, the Clear button is still there in IE 10 after I do this. I have tried adding !important to the display: none;, and it still shows up.

I noticed in my CSS that is being uploaded to the site that the ::-ms-clear that I am putting into the CSS file is not showing up at all, and I know that it is there (I put it at the end of the file).

Can anyone please tell me what I am doing wrong? There seems to be no help if this method doesn't work...

EDIT: Sorry, I should have mentioned this before. I'm using Wordpress, so I have no idea where the code for X-UA-Compatible would go to make this work.


回答1:


You must have selected browser/document mode other then IE10/Standard in F12 tools



来源:https://stackoverflow.com/questions/18643173/remove-ie-10-clear-button-from-input-field

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!