Ext开场表单布局设计

    var form = new Ext.form.FormPanel({
        labelAlign: 'right',
        labelWidth: 60,
        buttonAlign: 'center',
        title: 'form',
        frame:true,
         450,
        url: '04_01_01.jsp',

        items: [{
            bodyStyle: 'background:transparent;border:0px;',
            layout:'column',
            items: [{
                bodyStyle: 'background:transparent;border:0px;',
                columnWidth:.5,
                layout: 'form',
                defaultType: 'textfield',
                items:[
                    {fieldLabel: '俩字'},
                    {fieldLabel: '俩字'}
                ]
            },{
                bodyStyle: 'background:transparent;border:0px;',
                columnWidth:.5,
                layout: 'form',
                defaultType: 'textfield',
                items:[
                    {fieldLabel: '三个字'},
                    {fieldLabel: '三个字'},
                    {fieldLabel: '三个字'}
                ]
            }]
        },{
             345,
            height: 100,
            xtype: 'textarea',
            fieldLabel: '四个汉字'
        }],
        buttons: [{
            text: '按钮',
            handler: function() {
                form.getForm().submit();
            }
        }]
    });
原文地址:https://www.cnblogs.com/otio/p/4301879.html