EXTJS:文本框前面的标题与文本框之间的距离怎么拉近
标题与文本框的距离好远,怎么让标题靠近文本框?Ext.onReady(function(){Ext.create('Ext.form.Panel',{title:'Con...
标题与文本框的距离好远,怎么让标题靠近文本框?
Ext.onReady(function () {
Ext.create('Ext.form.Panel', {
title: 'Contact Info',
width: 300,
bodyPadding: 10,
renderTo: Ext.getBody(),
items: [{
xtype: 'textfield',
name: 'name',
fieldLabel: 'Name',
allowBlank: false // requires a non-empty value
}, {
xtype: 'textfield',
name: 'email',
fieldLabel: '2323',
vtype: 'email' // requires value to be a valid email address format
}]
});
})
</script> 展开
Ext.onReady(function () {
Ext.create('Ext.form.Panel', {
title: 'Contact Info',
width: 300,
bodyPadding: 10,
renderTo: Ext.getBody(),
items: [{
xtype: 'textfield',
name: 'name',
fieldLabel: 'Name',
allowBlank: false // requires a non-empty value
}, {
xtype: 'textfield',
name: 'email',
fieldLabel: '2323',
vtype: 'email' // requires value to be a valid email address format
}]
});
})
</script> 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询