Include a webpage inside a div

前端 未结 7 715
情歌与酒
情歌与酒 2020-12-09 06:10

I have to include a webpage inside my webpage\'s div. I want somehting like iframe to be done with DIV. Basically, I will be providing a URL to my

相关标签:
7条回答
  • 2020-12-09 06:39

    Actually, I agree with Frédéric Hamidi from above. Just embed an “object” inside a div and reference the URL of the other page in that object.

    You can set all the styling for the second page on itself or in a separate CSS file. That styling gets imported along with the page content without conflicting with the current pages style or scripts.

    I tested Frédéric Hamidi’s theory on these browsers, all performed just fine.

    • Internet Explorer – v11

    • Microsoft Edge - v 84.0.522.59 (Official build) (64-bit)

    • Google Chrome – v84.0.4147.105

    • FireFox – v79.0

    • Brave – v1.11.104

    • Opera – v69.0.3686.95

    • Safari – v13

    0 讨论(0)
提交回复
热议问题