原生拖动 + Firefox 3.6 中删除文件上传
最近,一位同事告诉我,Firefox 3.6 支持本机拖放文件上传 + 从操作系统调整图像大小,无需任何扩展或插件。
任何人都可以发布代码片段或提供演示此新功能的链接(因为我在 Google 搜索中找不到太多内容)?
I've recently been told by a colleague that Firefox 3.6 supports native drag and drop file uploads + image resizing from the operating system without any extensions or plugins required.
Can anyone post a code snippet or provide a link which demonstrates this new functionality (as I couldn't find much on a Google search)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
它相当重要(对于 HTML),因此没有代码片段,但是有一个非常好的 HTML DnD 教程 在这里。
注意:已更新正确的链接。 (我的错。)
It's reasonably non-trivial (for HTML) hence no code snippet, but there's a pretty good HTML DnD tutorial over here.
NB: Updated with correct link. (My bad.)
http://hacks.mozilla .org/2009/12/file-drag-and-drop-in-firefox-3-6/
编辑:也https://developer.mozilla.org/en/CSS/-moz-background-size 如果这是您要调整大小的图像
http://hacks.mozilla.org/2009/12/file-drag-and-drop-in-firefox-3-6/
Edit: also https://developer.mozilla.org/en/CSS/-moz-background-size if that's the image resizing you're after
Vimeo 有一个很好的 Firefox 3.6 拖放上传示例:
http://www.vimeo.com/6055152
Vimeo has a nice example of drag n drop upload for firefox 3.6 here:
http://www.vimeo.com/6055152