自定义事件拖拽组件
<! DOCTYPE HTML > < html > < head > < meta http-equiv ="Content-Type" content ="text/html; charset=utf-8" > < title >自定义事件拖拽组件 </ title > < style > #div1 { width : 100px ; height : 100px ; background : red ; position : absolute ; } #div2 { width : 100px ; height : 100px ; background : yellow ; position : absolute ; left : 100px ; } #div3 { width : 100px ; height : 100px ; background : blue ; position : absolute ; left : 200px ; } #div4 { width : 100px ; height : 100px ; background : green ; position : absolute ; left : 300px ; } </ style > </ head > < body > < div id ="div1" ></ div > < div id