简体   繁体   English

在Div上拖放

[英]Dragging and Dropping On A Div

this is what I have at the moment - http://jsfiddle.net/kommandoss/YuRpU/32/ 这就是我目前所拥有的-http: //jsfiddle.net/kommandoss/YuRpU/32/

What I want to do is when a letter is dragged over the empty space it stays in that place and the original position of the letter is blank without affecting the possition of the rest of the letters , any suggestions how I should do this, should I make the empty box a div or is there any other ways, thank you 我想做的是将一封信拖到该位置上的空白处,并且该信件的原始位置为空白而又不影响其余信件的位置时,我应该怎么做呢?将空框设为div或还有其他方法,谢谢

Checkout this live demo http://jsfiddle.net/YuRpU/34/ 观看此现场演示 http://jsfiddle.net/YuRpU/34/

use table in HTML. 在HTML中使用表格。 and wrap DIV to each image to drop image in it.. i have used HTML5 Drag and Drop property to drag n drop character. 并将DIV包装到每个图像以将图像拖放到其中。.我已经使用HTML5拖放属性拖动n个拖放字符。

I already answered your question here Drag Drop Replace javascript jquery Sandeep pretty much did what I did so that's fine. 我已经在这里回答了您的问题拖放替换javascript jQuery Sandeep做了我所做的事情,所以很好。 I would say stay away from re-posting similar questions more than once or at least include the link for the old question. 我要说的是,不要多次重复发布类似的问题,或者至少要包含旧问题的链接。 May save everyone some time in the future... 可能在将来为大家节省一些时间...

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

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