HTML5-sound drag and drop, html5-Drag and Drop
IE4 was first introduced to the js drag-and-drop function in webpages, and only images and some texts can be dragged and dropped. Any elements in the web page after IE5.5 can be dragged and dropped. HTML5 uses IE as an example to develop drag-and-drop specifications. FireFox3.5, Safari3 +, and Chrome also implement the sound drag and drop function according to HTML5 specifications.
When an element is dragged, the following events are triggered in sequence:
(1) dragstart
(2) drag
(3) dragend
This event is similar to the mousemove event. The targets of the above three events are all dragged elements. By default, the browser will not change the exterior of the dragged element during the drag, but you can modify it by yourself. However, most browsers create a translucent copy of The dragged element, which always moves with the cursor.
When an element is dragged to a valid placement target, the following events occur in sequence:
(1) dragenter
(2) dragover
(3) dragleave or drop