
当元素在HTML中被拖动到有效的放置目标时,ondragenter 属性会触发。
示例
您可以尝试运行以下代码来实现ondragenter 属性 -
Drag and drop HTML5 demo
Try to drag the purple box around.
Drag Me
Dustbin











