I'm currently facing a minor issue with my code. The problem arises when I attempt to set the content of an IFRAME using contents().find('html').html()
. For instance, when using this code snippet:
<html>
<head>
<style type="text/css>
body { background-color: red }
</style>
</head>
<body>
</body>
</html>
The styles defined for the body are not being applied, resulting in the background color remaining white (transparent). Any insights into why this might be happening?
Best regards, Peter.