I know our needs are strange, but they do exist.
We will open a specified page in an iframe within a web page, then copy a specified element, take it outside the iframe, and ask for a perfect representation of it. For example, if the background color defined in a div, is red, it should also be red when it is taken outside. (note that the style definition of head benefit in iframe cannot be copied to the outside)
I think the crux of the problem is to find out exactly what css definitions are in that div, in iframe, and then assign values to the outside div. But I don"t know how to find a css definition of an element.
I hope all of you can help me.