在 html5 中嵌入外部网站

embed external website in html5

我有两个网站,想将一个网站嵌入到另一个网站中。为此,我使用嵌入代码

<object data="http://mywebsite.com" width="100%" height="100%">
      <embed src="http://mywebsite.com" width="100%" height="100%"> </embed>
      Error: Embedded data could not be displayed.
    </object>

使其成为全屏,即高度和宽度为 100% 的 CSS 属性设置为

html, body{
   height: 100%;
   min-height: 100%;
}

现在,http://mywebsite.com/ 有响应,但嵌入此网站没有响应,并且显示的是缩小的桌面版本。

我要做的是让它表现得像浏览时的表现http://mywebsite.com/

这是一个老问题,但是关于一个未回答的问题的一些事情困扰着我的强迫症!所以我添加这个是为了帮助未来的用户。

尝试更改 CSS min-height: 100%; to min-height: 110vh;