[求解]显示问题
extjs吧
全部回复
仅看楼主
level 2
d23109106 楼主
Ext.onReady(function() {
Ext.QuickTips.init();
Ext.BLANK_IMAGE_URL = '../ext/resources/images/default/s.gif';
Ext.form.Field.prototype.msgTarget = 'qtip';
var panel;
panel = new Ext.Panel({
renderTo : Ext.getBody(),
frame : true,
items : [{
id : 'form1',
xtype : 'form',
title : '基本信息',
labelSeparator: ':',
layout : 'formtable',
layoutConfig : {columns : 4},
items:[{
xtype : 'field',
fieldLabel : "姓名<font color='red'>*</font>",
cls : 'text',
allowBlank : false,
name : 'XINGM'
},{
fieldLabel : "密码<font color='red'>*</font>",
inputType : 'password',
cls : 'text',
allowBlank : false,
name : 'PASSWD'
},{
fieldLabel : '性别  ',
cls : 'imgtext',
xtype : 'combo',
displayField:'sex',
hiddenName : 'XINGB',
mode: 'local',
forceSelection: true,
editable : false,
triggerAction: 'all',
emptyText:'----请选择----'
},{
fieldLabel : '身高  ',
xtype : 'numberfield',
cls : 'text',
name : 'SHENG'
},{
fieldLabel : '出生日期  ',
xtype: 'datefield',
format : 'Y-m-d',
name : 'BIRTH',
cls : 'imgtext'
},{
fieldLabel : '手机  ',
xtype : 'numberfield',
cls : 'text',
name : 'SHOUJ'
},{
fieldLabel : '邮箱  ',
xtype : 'numberfield',
cls : 'text',
name : 'YOUX'
},{
fieldLabel : '传真  ',
xtype : 'numberfield',
cls : 'text',
name : 'CHUANZ'
},{
fieldLabel : '备注  ',
xtype : 'textarea',
fieldClass : 'textarea',
co
lsp
an: 4
},{
fieldLabel : '自我   <br/>评价  ',
xtype : 'textarea',
fieldClass : 'textarea',
colspan: 4
},{
buttons : [{
text : '保存',
cls : 'button',
handler : function(){
//需要的操作
}
}]
},{
buttons : [{
text : '重置',
cls : 'button',
handler : function(){
//需要的操作
}
}]
}] },{
id : 'p',
xtype : 'panel',
layout : 'column',
items : [{
columnWidth : 60,
id : 'form2',
xtype : 'form',
title : '其他信息',
layout : 'form',
items : [{
xtype : 'radiogroup',
fieldLabel : '满意度:',
items : [{
boxLabel : '满意',
name : 'rb-col',
inputValue : 1,
checked : true
},{
boxLabel : '不满意',
name : 'rb-col',
inputValue : 2
},{
boxLabel : '一般',
name : 'rb-col',
inputValue : 3
}]
}]
},{
columnWidth : 40,
id : 'form3',
xtype : 'form',
title : '其他信息',
layout : 'form',
items : [{
xtype : 'checkboxgroup',
fieldLabel : '爱好',
items : [{
boxLabel : '运动',
name : 'yund',
checked : true
},{
boxLabel : '音乐',
name : 'yiny'
},{
boxLabel : '旅游',
name : 'lvy'
}]
}]
}]
}]
});
panel.show();
});
2012年11月20日 09点11分 1
level 10
我都没运行。。
2012年11月22日 12点11分 2
1