这样的代码网上有很多,参见
www.163.com

解决方案 »

  1.   

    请问这个函数为啥不行啊?
    function move()
    {
    width = document.body.clientWidth; 
    height = document.body.clientHeight; 
    Hoffset = showall.style.Height; 
    Woffset = showall.style.Width; 
    showall.style.left = width - Woffset;
    showall.style.top = height - Hoffset;
    }
      

  2.   

    width和height似乎是保留字,不要用它们做变量名
      

  3.   

    我把style后的大写改成小写就对了?真怪!