Ext.onReady(function(){
var login_window = new Ext.Window({
el:'login_window',
title:'刘凯的管理信息系统',
width:400,
height:250,
closable:false,
resizable:false,
draggable:false,
modal:true,
bodyStyle:"background-image:url('__ROOT__/hdwl/pic/index/bg.jpg');padding:55px 5px 0",
layout:'form',
labelAlign:'right',
lableWidth:50,
frame:true,
items: [{
xtype:'textfield',
fieldLabel:'用户名',
name:'loginName',
anchor:'80%'
}, {
xtype:'textfield',
fieldLabel:'密码',
name:'loginPass',
anchor:'80%'
}],
buttonAlign:'center',
buttons:[{
text:'登录'
},{
text:'重置'
}]
});
login_window.show();
});
bodyStyle:"background-color:#000fff;padding:55px 5px 0",则是修改窗口内的背景色。
阅读(18970) | 评论(0) | 转发(0) |