拖放到文件输入在IE11中不起作用 [英] Drag and drop into file input doesn't work in IE11
问题描述
有人可以回答我:为什么拖放字段在chrome和firefox中可以正常工作,但在IE11中不起作用? IE11只是在我从桌面拖放文件时打开文件。
Can anybody answer me: why drag and drop field works fine in chrome and firefox but doesn't work in IE11? IE11 just open the files when I drag and drop them from the desktop.
IE版本:11.545.10586.0
IE version: 11.545.10586.0
HTML:
<input type="file" />
示例: https://jsfiddle.net/3hc2grcp/ 。
推荐答案
Internet Explorer不支持html5的拖放API。所以您需要某种库扩展。
,您必须使用JavaScript库,例如Dropzone.js。 Dropzone.js甚至在Internet Explorer 10+和11中都支持文件(也包括多个文件)的拖放。
Internet explorer doesn't support drag and drop API of html5 . so you need some kind of library extension. you must use javascript library such as Dropzone.js. Dropzone.js support drag and drop for files(multiple files also) in even Internet explorer 10+ and 11.
请访问以下URL 此处。
这篇关于拖放到文件输入在IE11中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!