当前位置: 代码迷 >> Web前端 >> 默许布局和FIT布局的实例
  详细解决方案

默许布局和FIT布局的实例

热度:64   发布时间:2012-10-25 10:58:58.0
默认布局和FIT布局的实例
<script type="text/javascript">
Ext.onReady(function(){
    new Ext.Panel({
        renderTo:"hello",
        width:500,
        heihgt:200,
        //layout:"fit",  //把注释去掉就属于FIT布局方式
        items:[{
        title:"one",
        html:'one is one'
        },{
        title:"two",
         html:'two is two'
        },{
        title:"three",
        html:'three is three'
        },{
        title:"four",
        html:'four is four'
        },{
        title:"five",
         html:'five is five'
        }]
});
  
});
    </script>
  </head>
 
  <body>
   
    <div id="Hello"></div>
  </body>
</html>
  相关解决方案