更新时间:2023-11-13 11:38:52
我建议使用 jQuery ui -- droppable and draggable.
I'd suggest using jQuery ui -- droppable and draggable.
您可以使用 cursor: none
隐藏默认/实际光标,并使用风格化的 DOM 元素来呈现您自己的光标"元素.
You can hide the default/actual cursor using cursor: none
and use a stylized DOM element to render your own 'cursor' element.
我在这里提供了一个示例:http://jsfiddle.net/lawrencealan/WMyu7/78/ (更新2017 年 6 月 8 日)
I've provided an example here: http://jsfiddle.net/lawrencealan/WMyu7/78/ (updated 6/8/2017)
注意:mousemove
在拖动可拖动"属性元素时停止触发.
Note: mousemove
stops firing during dragging of "draggable" attributed elements.
--
截至 2019 年 9 月,该示例现已失效.
As of September 2019, the example is now broken.