在两个div之间用jquery绘制线 [英] draw line with jquery between two divs

查看:132
本文介绍了在两个div之间用jquery绘制线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何用jquery库或简单的javascript在两个div之间绘制线?

how can I draw line between two div's with jquery library or simple javascript?

我在页面上有各种div的框,其中有id

I have various div's boxes on page with there id's

如果点击#div1并拖动我想要的东西#div2#div1和#div2之间的箭头线指向2,并以某种方式保存此连接细节。此外,我可以将#div1附加到其他div,并保存连接详细信息。

what I wants if I click on #div1 and drag it to #div2 It will make an arrow line between #div1 and #div2 pointing to 2, And somehow save this connection details. Also i can attach #div1 to other div's and it save that connection details as well.

(如果重要的话,我使用的是jquery UI)。

(I am using jquery UI if that matters).

感谢您的帮助。

推荐答案

我发现 http://jsplumb.org/

这篇关于在两个div之间用jquery绘制线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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