Jump to content

Login form background


Recommended Posts

Hi!

 

I need help to setup background behind login form on screen. All we know, when login form is showing, background on screen is white. I want to change background behind login form and setup same backgroung like on Main form.

 

Thanks!

Link to post
Share on other sites

1、

function window.activate(sender, eOpts)// 外的背景,控件中Ext.getBody().style.background=
{ setTimeout('document.body.style.background= "#004080 url(files/60.bmp)  center 20% no-repeat fixed";',1)}
//Ext.DomHelper.overwrite("body","<img src=files/bj1.png id='asdf' width='100%' height='100%'/>")//拉伸
// Ext.DomHelper.overwrite(MainForm.UniPanel1.id,"");//renderTo:MainForm.UniHTMLFrame1.id+"-innerCt",
//sender.el.applyStyles('padding:0px;border-width:0px;border-radius:0px');//去掉窗口的边框,IE里高不同步
//if(document.uniqueID){document.getElementById('asdf').style.height=document.documentElement.clientHeight;}//不用这句
加:html { height: 100% } body { height: 100%; margin: 0; padding: 0 }
2、function form.afterrender(sender, eOpts)//内的背景,颜色,底图,居中,不重复
{sender.body.applyStyles('background-color:#004080;background-image:url(files/bj1.png);background-repeat:no-repeat;background-position:center;');}
//sender.setBodyStyle('');UniLoginForm1.form.setBodyStyle('');
Link to post
Share on other sites
×
×
  • Create New...