extjs表单布局,为啥label与文本框距离不能调整,我已用了labelWidth了,另代码里还有两个注释请大侠解决 10
Ext.onReady(function(){newExt.Window({title:"添加人员",width:500,height:400,plain:true,it...
Ext.onReady(function(){
new Ext.Window({
title:"添加人员",
width:500,
height:400,
plain:true,
items:[{
layout:"column",
style:"padding:5px",
items:[{
title:"label1",
columnWidth:.5,
// layout:'form',//为啥这一行不注释会报undefined的错误
defaultType:"textfield",
labelWidth:20, //为啥不起作用
items:[{
fieldLabel:"姓名"
},{
fieldLabel:"年龄"
},{
fieldLabel:"出生日期"
},{
fieldLabel:"联系电话"
},{
fieldLabel:"手机号码"
},{
fieldLabel:"电子邮箱"
},{
fieldLabel:"性别"
}]
},{
title:"label2",
columnWidth:.5
}]
}]
}).show();
}); 展开
new Ext.Window({
title:"添加人员",
width:500,
height:400,
plain:true,
items:[{
layout:"column",
style:"padding:5px",
items:[{
title:"label1",
columnWidth:.5,
// layout:'form',//为啥这一行不注释会报undefined的错误
defaultType:"textfield",
labelWidth:20, //为啥不起作用
items:[{
fieldLabel:"姓名"
},{
fieldLabel:"年龄"
},{
fieldLabel:"出生日期"
},{
fieldLabel:"联系电话"
},{
fieldLabel:"手机号码"
},{
fieldLabel:"电子邮箱"
},{
fieldLabel:"性别"
}]
},{
title:"label2",
columnWidth:.5
}]
}]
}).show();
}); 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询