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

查看:66
本文介绍了从输入字段中删除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天全站免登陆