Removing iframe background color

I have an iframe on my page that currently has a background color of gray, I want to change the color to be white, but it doesn't seem to be that way. I tried using jquery but not sure if this is correct:

$(document).ready(function(){
    $('iframe').contents().find('body').css('backgroundColor', 'white');
});

mostly at the moment when the bo tag inside the iframe has an embedded background color: # f1f0e9

Can anyone suggest how I can update this background color? I also tried css, but nothing.

The problem on this page is http://cromorevillage.com/book.html

An IFrame is a booking element, and the background color is on the page down because you had to add an iframe height so that all booking options could be displayed when they were selected?

+3
source share
3

...

src iframe , ?

...

iframe .

, , .

+2
$(document).ready(function(){
    $('iframe').contents().find('body').attr('bgcolor', 'white');
});
0
.css('background-color', 'white');

background-color is the css style you are looking for.


You need to add a header P3Pwith a value CP="CAO PSA OUR"to enable cross-domain communication.

0
source

All Articles