问题
Here is my file input on different browsers. IE10 uses an horrible default style. Any idea about how to remove it?
回答1:
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.
回答2:
Use a reset CSS template (example: http://meyerweb.com/eric/tools/css/reset/)
And then style it yourself with your own CSS.
来源:https://stackoverflow.com/questions/17618952/how-to-remove-default-file-input-style-on-ie10