简体   繁体   English

使用 HTML 拖放 5

[英]Drag and Drop using HTML 5

I want to make a project of drag and drop feature.我想做一个拖放功能的项目。 There are multiple images on a screen and I want to drag each of them one by one and drop them anywhere on the screen.屏幕上有多个图像,我想一张一张地拖动它们并将它们放在屏幕上的任何位置。 If anyone can explain me or give the code on how to implement this feature, that would be of great help.如果有人可以向我解释或提供有关如何实现此功能的代码,那将有很大帮助。

To make a dynamic drag and drop, you must use Javascript.要进行动态拖放,您必须使用 Javascript。

Take a look at these examples : 
https://codepen.io/aaronvanston/pen/yNYOXR

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM