table
?
<html>
<head>
    <title>Table Layout</title>
    <!-- GC -->
    <script type="text/javascript" src="../../examples/shared/include-ext.js"></script>
    <script type="text/javascript" src="../../examples/shared/options-toolbar.js"></script>
    <script type="text/javascript" src="table.js"></script>
    <style type="text/css">
        #main-panel td {
            padding:5px;
        }
    </style>
</head>
<body>
</body>
</html>
?
Ext.onReady(function() {
    var panel = Ext.create('Ext.Panel',{
        id:'Panel',
        baseCls:'x-plain',
        renderTo:Ext.getBody(),
        layout:{
            type:'table',
            columns:3
        },
        defaults:{
            frame:true,
            width:200,
            height:200
        },
        items:[{
            title:'Sub1'
        },
        {
            title:'Sub2'
        },
        {
            title:'Sub3'
        },
        {
            title:'Sub4',
            width:410,
            colspan:2
        },
        {
            title:'Sub5',
            rowspan:2,
            height:410
        }
        ]
    });
});
?
Box
box.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Box演示</title>
	<link rel="stylesheet" type="text/css" href="../shared/example.css" />
    <script type="text/javascript" src="../../examples/shared/include-ext.js"></script>
    <script type="text/javascript" src="../../examples/shared/options-toolbar.js"></script>
<script type="text/javascript" src="box.js"></script>
</head>
<body>
</body>
</html>
?
 Ext.onReady(function(){
    Ext.create('Ext.Viewport',{
	  title:'Box演示',
	  width:600,
	  height:100,
	  items:[{
		layout: {
			type:'hbox',
			type:'vbox',
			padding:'10',
			pack:'start',
			align:'top'
		},
		defaults:{margins:'0 5 0 0'},
		items:[{
			xtype:'button',
			text: 'Button 1'
		},{
			xtype:'button',
			text: 'Button 2'
		},{
			xtype:'button',
			text: 'Button 3'
		},{
			xtype:'button',
			text: 'Button 4'
		}]
	  }]
	})
  })
?Border
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
		<title>Border Layout</title>
		<style type="text/css">
        .big-glyph {
            font-size: 20px !important;
            width: 20px !important;
            height: 20px !important;
            line-height: 20px !important;
            margin-top: 2px;
        }
        .ux-arrow {
            cursor: pointer;
        }
        .ux-arrow-over {
            color: red;
        }
        .ux-arrow-current-north .ux-arrow-up,
        .ux-arrow-current-south .ux-arrow-down,
        .ux-arrow-current-east .ux-arrow-right,
        .ux-arrow-current-west .ux-arrow-left {
            color: #c0c0c0;
            cursor: not-allowed;
        }
    </st