【问题标题】:How to use iframe tag for display width and height如何使用 iframe 标签显示宽度和高度
【发布时间】:2018-01-29 02:27:32
【问题描述】:
<!DOCTYPE html>
<html>
<body>

<iframe src="https://desk.zoho.com/portal/myclassboard/kb/articles/how-to-view-event-details-in-the-calendar/">
  <p>Your browser does not support iframes.</p>
</iframe>

</body>
</html>

朋友们,

我需要如何使用 iframe。我编写的上述代码在 iframe 中显示网站,但在某些情况下它可以正常工作,而在某些情况下它不能正常工作,当我更改网站链接时。

在上述情况下,我们已将链接更改为某些 https://corp6beta.myclassboard.com/ 其工作但放置上述链接时它不起作用。

我是 iframe 的新手,请帮助我...如何避免这个问题。

【问题讨论】:

标签: html iframe


【解决方案1】:

我以前也遇到过类似的问题,这可能会帮助你iFrame not Loading

【讨论】:

  • Kumar Nisit:- 网站在没有发布者的情况下如何在 iframe 中显示不允许网站在框架中显示..
  • 这都是关于 X-Frame 选项的。首先您必须检查这些站点的 HTTP 响应标头 X-Frame-Option。如果它的值为“deny or sameorigin”,那么您不能在 iframe 中加载这些网站。
猜你喜欢
  • 2016-08-02
  • 2013-03-07
  • 1970-01-01
  • 1970-01-01
  • 2016-10-31
  • 1970-01-01
  • 2013-02-21
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多