问题
I have a client that wants to be able to embed their website into their distributors websites.
Basically inserting it in an iframe. But they want certain elements of their website that are normally visible to not appear on the embedded version.
Is there a way to embed a website in an iframe and use css to hide specific div id's to achieve this?
回答1:
you can use following code in java script to manage element of a iframe
frame.contentWindow.document.getElementById or
frame.contentDocument.getElementById
来源:https://stackoverflow.com/questions/30566295/embed-website-in-an-iframe-and-hide-certain-elements