【问题标题】:How to show another website without its header in a certain website using only html?如何仅使用 html 在某个网站中显示没有标题的另一个网站?
【发布时间】:2023-03-31 03:58:01
【问题描述】:

我想仅使用 html 在另一个页面中显示页面的某个部分。 网址是:http://alojamientos.rumboalsur.es 部分是:

我尝试使用 IFrame 并尝试选择它所在的 div 类,但整个页面不断显示。 我正在尝试的代码是:

<iframe src="http://alojamientos.rumboalsur.es/#nav-drawer" width="1920" height="1080" align="center" ></iframe>

我使用的 div 类是:nav-drawer

我是否使用了错误的 div 类?有没有其他使用html的方法?

【问题讨论】:

    标签: html web iframe


    【解决方案1】:

    由于same origin policy,您不可能更改 iframe 内的另一个域。因此,HTML/CSS 或 JavaScript 无法更改另一个域的内容。

    【讨论】:

      猜你喜欢
      • 2017-04-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-12-07
      • 1970-01-01
      • 2021-09-03
      • 1970-01-01
      相关资源
      最近更新 更多