删除IE10的“清除字段"某些输入上的X按钮? [英] Remove IE10's "clear field" X button on certain inputs?

查看:120
本文介绍了删除IE10的“清除字段"某些输入上的X按钮?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可以肯定,这是一个有用的功能,但是有什么方法可以禁用它吗?
例如,如果表单是单个文本字段,并且旁边已经有清除"按钮,则也不需要X.在这种情况下,最好将其删除.

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's superfluous to also have the X. In this situation, it would be better to remove it.

可以做到吗?如果可以,怎么办?

Can it be done, and if so, how?

推荐答案

设置 <框的c0>伪元素:

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

这篇关于删除IE10的“清除字段"某些输入上的X按钮?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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