http://topic.csdn.net/t/20041224/13/3673363.html

解决方案 »

  1.   

    body中 onresize="javascript:OnReSize();" //屏幕改变大小时,触发
    function OnReSize()
    {
    parent.window.moveTo(0,0);
    parent.window.resizeTo(screen.availWidth,screen.availHeight);

    treeHeight = (document.body.clientHeight - 20);
    listHeigth = document.body.clientHeight - 45;
    document.all?($('treeMenuControl').style.cssText="float:left;margin:0px;background-color:#eee;width:9px;height:"+treeHeight+"px;"):($('treeMenuControl').setAttribute("style","float:left;margin:0px;background-color:#eee;width:9px;height:"+treeHeight+"px;"));
    }
      

  2.   

    现在问题是FF只能获得WINDOW的onresize事件。但是我使用dojo的splitpanel。它会改变区域大小,也就是div,这样就弄得我没办法获得onresize对于这个DIV