【问题标题】:Drag and drop into file input doesn't work in IE11拖放到文件输入在 IE11 中不起作用
【发布时间】:2016-12-29 00:07:52
【问题描述】:

谁能回答我:为什么拖放字段在 chrome 和 firefox 中可以正常工作,但在 IE11 中不起作用?当我从桌面拖放文件时,IE11 只会打开文件。


IE版本:11.545.10586.0


HTML:

<input type="file" />

例如:https://jsfiddle.net/3hc2grcp/

【问题讨论】:

    标签: drag-and-drop


    【解决方案1】:

    Internet Explorer 不支持 html5 的拖放 API。所以你需要某种库扩展。 您必须使用 javascript 库,例如 Dropzone.js。 Dropzone.js 支持在 Internet Explorer 10+ 和 11 中拖放文件(也包括多个文件)。

    请访问以下网址here

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-08-06
      • 1970-01-01
      • 2018-03-25
      • 2019-09-07
      • 1970-01-01
      • 2013-12-22
      • 1970-01-01
      相关资源
      最近更新 更多