很容易滴,parent.cols="25%,*";在JAVASCRIPT里指定这个cols就可以了。

解决方案 »

  1.   

    那个用的是TreeView控件做的吧!
      

  2.   

    function expand(id){
             window.status = eval("s"+id).innerText;
             getLight(id);
             if(eval("s"+id).href != '' && event.srcElement.className == 'node')
                 document.frames['nodehref'].location.href = eval("s"+id).href
                switch(eval("dir"+id).innerText){
                    //改变"+","-"
                    case "-":{
                        eval("dir"+id).innerText = "+";
                        eval("dir"+id).className = 'dirclose';
                        document.getElementById("load_"+id).style.display = 'none';
                        if(document.getElementById("t"+id))
                       eval("t"+id).style.display = 'none';
                        break;
                     }
                     case "+":{
                         eval("dir"+id).innerText = "-";
                         eval("dir"+id).className = 'diropen';
                         document.getElementById("load_"+id).style.display = '';
                         if(!(document.getElementById("t"+id))){
                             var url = "subtree.jsp?parentid=" + id;
                             document.frames['hifm'].location.href = url;
                         }
                         else{
                             document.getElementById("load_"+id).style.display = 'none';
                             document.getElementById("t"+id).style.display = '';
                         }
                         break;
                      }
                      default:{
                          eval("dir"+id).innerText = ".";
                          eval("dir"+id).className = 'dirNode';
                      }
                   }
        } function getLight(id)
    {
       var s  = document.getElementsByTagName("SPAN")
       var sn = document.getElementById("s"+id)
       for(i=0;i<s.length;i++)
          if(s[i].className == 'node')
         s[i].style.cssText = "color:#000000;background-color:#f2f2f2";
       sn.style.cssText = "color:#000000;background-color:#ffffff;border:1 solid #999999";
    }