布局的合理利用:
如图:
{ xtype:'container', margins:'5 0 0 0', layout:{ align:'stretch', type:'hbox' }, items:[ { xtype:'fieldcontainer', margins:'5 0 0 0', fieldLabel:'AAAA', combineErrors: true, labelWidth: 130, labelAlign: 'right', flex:1, defaults:'hideLabel: true', layout:{ align:'stretch', type:'hbox' }, items:[ { xtype:'textfield', flex:1 }, { xtype:'displayfield', margins: '0 5 0 5', value:'至' }, { xtype:'textfield', flex:1 } ] }, { xtype:'fieldcontainer', margins:'5 0 0 0', fieldLabel:'BBBB', combineErrors: true, labelWidth:130, labelAlign:'right', flex:1, defaults:'hideLabel: true', layout:{ align:'stretch', type:'hbox' }, items:[ { xtype:'textfield', flex:1 }, { xtype:'displayfield', margins: '0 5 0 5', value:'至' }, { xtype:'textfield', flex:1 } ] } ] }