onmove控制函数里if(parseInt(child_div.style.top)<parseInt(parent_div.style.top)) child_div.style.top = parent_div.style.top;if(parseInt(child_div.style.left)<parseInt(parent_div.style.left)) child_div.style.left = parent_div.style.left;if(parseInt(child_div.style.top) + child_div.clientHeight > parseInt(parent_div.style.top)+parent_div.clientHeight)
   child_div.style.top = parseInt(parent_div.style.top) + parent_div.clientHeight - child_div.clientHeight;if(parseInt(child_div.style.left) + child_div.clientWidth > parseInt(parent_div.style.top)+ parent_div.clientWidth) child_div.style.left = parseInt(parent_div.style.left) + parent_div.clientWidth - child_div.clientWidth;