javascript - The iframe tag is introduced into the html page. The content in the tag is the same as the original html content. Why is it displayed differently on the page?
阿神2017-07-05 10:40:31
0
4
803
This is a pure HTML static web page, I want to share a footer
Because iframe is equivalent to you embedding a new webpage, the tags in the iframe cannot be obtained on the current webpage, so this webpage cannot use the css style of the current webpage
iframe
should contain a complete html page withhtml body
tagsThe web page embedded in the iframe does not use your style
Because iframe is equivalent to you embedding a new webpage, the tags in the iframe cannot be obtained on the current webpage, so this webpage cannot use the css style of the current webpage
The page in the iframe omits the head and body tags, resulting in the corresponding style files not being introduced, so it looks different