谁会在extjs中设置field与field之间的间距?
var simple = Ext.create('Ext.form.Panel', {//url:'save-form.php',
frame:true,
title: '个人信息确认',
bodyStyle:'padding:5px 40px 0',
width: 950,
height:350,
fieldDefaults: {
msgTarget: 'side',
labelWidth: 120
},
defaultType: 'textfield',
// defaults: {
// anchor: '60%'
// },
items: [{
fieldLabel: '姓         名',
labelWidth:120,
width:375,
labelAlign:'left',
// labelStyle:'width:100;',
name: 'name',
allowBlank:false
},new Ext.form.NumberField({
//xtype:'numberfield',
nanText:'请输入有效整数',
width:375,
minValue:'1',
hideTrigger: true,
allowNegative:false,
allowDecimals:false,
allowBlank:false,
fieldLabel: '身份证号码',
name: 'id'
}),new Ext.form.NumberField({
//xtype:'numberfield',
nanText:'请输入有效整数',
minValue:'1',
width:375,
allowBlank:false,
hideTrigger: true,
allowNegative:false,
allowDecimals:false,
fieldLabel: '手 机 号 码',
name: 'phoneNum'
}),{
//xtype: 'timefield',
fieldLabel: '短信验证码',
width:375,
allowBlank:false,
name: 'message',
},new Ext.Button({
//xtype:'button',
width:70,
text:'点击获取',
})],
buttons: [{
text: '确认提交',
handler: function(){
this.up('form').getForm().submit({
url: 'xml-form-errors.xml',
submitEmptyText: false,
waitMsg: 'Saving Data...'
});
}
}]
});
field与field之间的间距如何设置? --------------------编程问答-------------------- 用margin设置 --------------------编程问答-------------------- 嗯 同楼上。
补充:Java , Web 开发