PDA

View Full Version : background image for button not working in IE



dedeoc
5 Nov 2012, 9:16 AM
Hi,

I have inlined one particular button to have an image as its background. It works fine in Chrome but unfortunately it does not work in IE,

Thanks


style: 'backgroundImage: url(js/extjs/resourcesPAs/themes/images/default/btn/Refresh.gif)'

mitchellsimoens
7 Nov 2012, 8:24 AM
Instead of backgroundImage try background-image

dedeoc
7 Nov 2012, 8:58 AM
That doesn't work :(

sword-it
7 Nov 2012, 11:25 PM
Hi,

try the following code


var form = Ext.create('Ext.form.Panel', {
renderTo: Ext.getBody(),
layout:"column",
items:[{
xtype:"button",
cls: 'submit',
name:"a",
height:25,
width:70
}]
});

and the css class


.submit{
background:url(http://www.izzigirls.com/tipos/submit_icon.gif) no-repeat !important;
}‚Äč