摘要:
1 //普通拖拽 2 /* 3 * CSS 4 */ 5 #div1{ width:100px; height:100px; position:absolute; background:red; cursor:move;} 6 7 /* 8 *HTML 9 */10 11 12 13 /*14 *JavaScript15 */16 window.onload = function (){17 var oDiv = document.getElementById("div1");18 oDiv.onmousedown = function(ev){19 ... 阅读全文