body,html { overflow:hidden; } #box { position:absolute; top:0; left:0; width:100px; height:100px; background:pink; cursor:move; }
简单的元素拖拽移动注:需要移动的元素必须绝地定位!!!