使用画布的HTML5拖放 [英] Html5 drag and drog using canvas

查看:86
本文介绍了使用画布的HTML5拖放的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

创建一个包含2张图像的简单页面.使用HTML 5和canvas的拖放功能.以便可以在它们之间交换它们,即,当我将图像1拖放到图像2上时,它们应该更改其位置.

Create a simple page having 2 images. Use drag and drop feature of HTML 5 and canvas .so that they can be swapped among them i.e when I will drag image 1 and drop on image 2 they should change their position.

推荐答案

这些链接可能对您有帮助

拖放html5 [ http://html5.litten.com/how-to-drag -and-drop-on-an-html5-canvas/ [
These links may help you

Drag and drop on html5[^]
http://html5.litten.com/how-to-drag-and-drop-on-an-html5-canvas/[^]


这篇关于使用画布的HTML5拖放的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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