<input type='file'> Browse button issue. Is there any alternate plugin to achieve the same?
I have writ开发者_运维百科ten
<input type="file">
which results in one small text box along with browse button if i want to apply my custom CSS for this button then how do i do that?
Is there any plug-in to upload file from client to server where for button i can apply my own CSS?
Most browsers don't give you very much control over the styling of inputs of type="file"
, and even if they did, you wouldn't get a very consistent appearance as the control is rendered differently by different browsers: in Chrome, for instance, there's no input field.
If you want to control appearances, consider a tool such as uploadify
You could definitely apply styles to the upload button. Here's a link which details achieve this. http://www.burhankhan.com/css_tricks/styling-file-upload-input-box-in-css/
The options to style this element directly through CSS are very limited. One of the best know approaches to get around these limitations is this one by Shaun Inman.
Another option is an asynchronous upload using Flash, often done using swfupload.
精彩评论