search

Home  >  Q&A  >  body text

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?

This is a pure HTML static web page, I want to share a footer


阿神阿神2724 days ago802

reply all(4)I'll reply

  • 我想大声告诉你

    我想大声告诉你2017-07-05 10:42:31

    iframe should contain a complete html page with html bodytags

    reply
    0
  • 黄舟

    黄舟2017-07-05 10:42:31

    The web page embedded in the iframe does not use your style

    reply
    0
  • phpcn_u1582

    phpcn_u15822017-07-05 10:42:31

    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

    reply
    0
  • 習慣沉默

    習慣沉默2017-07-05 10:42:31

    The page in the iframe omits the head and body tags, resulting in the corresponding style files not being introduced, so it looks different

    reply
    0
  • Cancelreply