Apply Css To Iframe Content
I have used below code This is my Iframe:
Solution 2:
The code of setting the css seems alright semantically as the html is not available to ensure if you correctly used the selectors
. You are probably accessing DOM
element before they become available. The element of frame may not become ready on document.read
y event but on window.load
Put the code in window.load to ensure the elements in iframe are available to script.
$(window).load(function){
$('#fblike').contents().find('.pluginButton').css({'background','#FF8000'});
})
Post a Comment for "Apply Css To Iframe Content"