Created
May 11, 2016 04:50
-
-
Save hustcc/7be0a8804247a94dd00a0a7a1d61b77d to your computer and use it in GitHub Desktop.
重写 file 控件样式
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
input[type="file"]{ | |
-webkit-appearance: none; | |
text-align: left; | |
-webkit-rtl-ordering: left; | |
} | |
input[type="file"]::-webkit-file-upload-button{ | |
-webkit-appearance: none; | |
float: right; | |
margin: 0 0 0 10px; | |
border: 1px solid #aaaaaa; | |
border-radius: 4px; | |
background-image: -webkit-gradient(linear, left bottom, left top, from(#d2d0d0), to(#f0f0f0)); | |
background-image: -moz-linear-gradient(90deg, #d2d0d0 0%, #f0f0f0 100%); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment