Mit folgendem javascript-Code kann die CSS eines iFrames angepasst werden – den Code hinter dem iFrame einfügen in einem Fenster Typ „Eigener Code“:

//script type text/javascript

window.onload = function() { let frameElement = document.getElementById("myiFrame"); let doc = frameElement.contentDocument; doc.body.innerHTML = doc.body.innerHTML + 'body {background-color:#000;color: #fff;text-align: center;}body > div {max-width: unset!important;}'; }

Schreiben Sie einen Kommentar

Your email address will not be published.

Post comment