使用Jquery将剪贴板图像复制到网页中 [英] Copy clipboard image into webpage using Jquery

查看:158
本文介绍了使用Jquery将剪贴板图像复制到网页中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在网页中实现复制剪贴板图片。

I want to implement copy clipboard image into webpage.

Ex。用户单击打印按钮,打开网页,单击CTRL + V,图像将上载到网页。是否可以使用jquery / javascript或PHP。

Ex. User click the printscreen button, opens a web page, clicks CTRL+V and the image is upload to the web page. Can it possible using jquery/javascript or PHP.

是否可以在Firefox中使用?

Is it possible in firefox?

提前致谢。

推荐答案

我不敢,不。您必须让您的用户将屏幕截图保存到磁盘,然后(a)使用< input type =file/> 从磁盘中选择它元素或(b)实现HTML5 拖动删除API ,允许用户拖动将文件放入浏览器窗口。

I'm afraid not, no. You'll have to have your users save the screenshot to disk and then either (a) select it from the disk using a <input type="file" /> element or (b) implement the HTML5 Drag n' Drop API, allowing the user to drag the file into the browser window.

这篇关于使用Jquery将剪贴板图像复制到网页中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆