好象这样写没问题啊~~~
看不出来

解决方案 »

  1.   

    运行的时候不对不知道为什么
      

  2.   

    joe 兄,就是借用你上次的例子,
    http://expert.csdn.net/Expert/topic/2985/2985327.xml?temp=6.954592E-02
    如果在那个页面随便加入很多很多文字,然后把框向下拖,好像是拖不下去的,我把move大概这样改了:
    function move(){
    if (event.x - border.offsetMouseLeft<0 || event.y - border.offsetMouseTop<0)
    return false;
    border.style.left = event.x - border.offsetMouseLeft+window.document.body.scrollLeft;
    border.style.top = event.y - border.offsetMouseTop+window.document.body.scrollTop;
    if (event.clientY > window.document.body.clientHeight - 10 )
    {
    window.scrollBy(0, 10);
    }
    else if (event.clientY < 10)
    {
    window.scrollBy(event.clientX, -10);
    }
    }
    然后先向下移动,再向上就全乱了