tag is too ugly and not customizable, that\'s why I did a trick. The base idea came from here:" />
开发者

Custom file upload with JS, HTML and CSS in IE

开发者 https://www.devze.com 2023-03-06 19:04 出处:网络
I would like to create a file upload form, but the < input type=\"f开发者_运维问答ile\" > tag is too ugly and not customizable, that\'s why I did a trick. The base idea came from here:

I would like to create a file upload form, but the < input type="f开发者_运维问答ile" > tag is too ugly and not customizable, that's why I did a trick. The base idea came from here:

How Can I Create a Custom File Upload With Only HTML, JS and CSS

The problem is when I specify the name property in this tag the upload will not work in IE. check it here:

http://jsfiddle.net/W3a3J/35/

use the Browse and Upload buttons. In the first case it will work, the data is sent and the page is refreshed. But in the second case if you click the Upload button it will just erase the path from the tag.


It is mainly because IE8 does not support CSS3

0

精彩评论

暂无评论...
验证码 换一张
取 消