css - Unable to appy background panel image dynamically for chrome in Extjs -
i have desktop application panel base , has background. have form multiple images change panel background dynamically. have used below code work both firefox , ie. none working chrome. came know better directly apply panel div element.
the code used is:
panelbg.setbodystyle({ backgroundimage: 'url('+bgimage+') !important', backgroundrepeat: 'no-repeat', backgroundposition: 'center', backgroundsize: 'contain' }); panelbg.setbodystyle('background-image','url('+bgimage+')'); panelbg.setbodystyle('backgorund=position','center'); panelbg.setbodystyle('background-size','cover');
how set panel background without having use multiple statements?
help appreciated.
thanks in advance! :)
have tried concatenating functions:
panelbg.setbodystyle('background-image','url('+bgimage+')').setbodystyle('backgorund=position','center').setbodystyle('background-size','cover');
Comments
Post a Comment