Fork me on GitHub
ExtJS专题(十):layout布局的使用(5)
  1. column
    1. Ext.onReady(function() {  
    2.         var win = new Ext.Window({  
    3.             title: "Column Layout",  
    4.             height: 300,  
    5.             width: 400,  
    6.             plain: true,  
    7.             layout'column',  
    8.             items: [{  
    9.                 title:"width=50%",  
    10.                 columnWidth:0.5,  
    11.                 html:"width=(容器宽度-容器内其它组件固定宽度)*50%",  
    12.                 height:200  
    13.             },  
    14.             {  
    15.                 title:"width=250px",  
    16.                 width: 200,  
    17.                 height:100,  
    18.                 html:"固定宽度为250px"  
    19.             }              
    20.             ]  
    21.         });  
    22.         win.show();  
    23.     });  

  2. 把整个容器看成一列,然后向容器放入子元素时 。

    图形结果展示:

    .net代码 
posted on 2010-03-11 16:56  HackerVirus  阅读(823)  评论(0编辑  收藏  举报