I'm trying to remove the background image on a page that's being loaded via an iframe within a lightbox effect. I have verified that body is the correct element within the iframe that's being selected, but I can't get the background image to go away. Am I missing something obvious?
var body = jQuery('#fancybox-frame').contents().find('body');
body.css({
'background': 'none',
'background-image': 'none',
'background-color': '#fff'
});
UPDATE: Currently my CSS for this element reads (according to firebug) ...
body {
background-color:#5A7E92;
background-image:url("/images/background.gif");
border:10px solid #021E2F;
font-family:verdana,san-serif;
font-size:10pt;
margin:auto;
}
UPDATE: You can see the example here by clicking the "Mail" link.... http://www.retailcustomerexperience.com/article/21532/GlobalShop-DOOH-measurement-essential-for-reaching-customers