如何清除IE10上的默认文件输入风格? [英] How to remove default file input style on IE10?
本文介绍了如何清除IE10上的默认文件输入风格?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这是我在不同浏览器上的文件输入。
IE10使用可怕的默认样式。有关如何删除它的任何想法吗?
解决方案
IE支持大量用于文件输入的伪元素:
-
:: - ms -value
样式显示文本显示的部分 -
ul>
使用这些文件,您可以根据需要对文件输入进行样式设置。
Here is my file input on different browsers. IE10 uses an horrible default style. Any idea about how to remove it?
解决方案IE supports a number of pseudo elements for file inputs:
::-ms-value
for styling the part where the text is displayed::-ms-browse
for styling the button
Using these you can style both parts of the file input however you wish.
这篇关于如何清除IE10上的默认文件输入风格?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文