从输入字段中删除 IE 10 清除按钮 [英] Remove IE 10 Clear Button From Input Field

查看:19
本文介绍了从输入字段中删除 IE 10 清除按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我网站上的所有输入中,当我尝试在输入中使用 Kendo 数字文本框时,IE 10 清除按钮会妨碍我.

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.

我在这里查了一下,每个问题都说这是我应该在我的 CSS 中做的事情:

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

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

但是,执行此操作后,IE 10 中的清除"按钮仍然存在.我已经尝试将 !important 添加到 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.

我注意到在上传到网站的 CSS 中,我放入 CSS 文件的 ::-ms-clear 根本没有显示,我知道它有吗(我把它放在文件的末尾).

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...

抱歉,我之前应该提到过这一点.我正在使用 Wordpress,所以我不知道 X-UA-Compatible 的代码会在哪里完成这项工作.

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.

推荐答案

您必须在F12工具中选择了IE10/Standard以外的浏览器/文档模式

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

这篇关于从输入字段中删除 IE 10 清除按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆