I'm wondering if there is any way to remove background color from within Iframe original site.. It is only a white color. Can I use javascript??
尝试这个
document.getElementById("YourIframeId").contentWindow.document.body.style.backgroundColor="blue";
if the iframe have the same domain as your page you can achieve this via javascript, with something like this
document.getElementById('IFRAMEID').contentDocument.body.style.background = "transparent";
then you'll need to add the transparency attribute to the iframe
ALLOWTRANSPARENCY="true"
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.