html / javascript 中的可拖动文本
Draggable text in html / javascript
我想让一个段落可以移动。我试图在网上搜索,但找不到任何东西。那有可能吗?
我试过了,但我不能移动它:
<p draggable="true">This is a test</p>
您需要设置
draggable="true"
你的段落。 JSFiddle Demo
如果我使用 This as Mikey posted in a comment.
就可以了
现在它就像一个魅力。
我想让一个段落可以移动。我试图在网上搜索,但找不到任何东西。那有可能吗?
我试过了,但我不能移动它:
<p draggable="true">This is a test</p>
您需要设置
draggable="true"
你的段落。 JSFiddle Demo
如果我使用 This as Mikey posted in a comment.
就可以了现在它就像一个魅力。