【发布时间】:2018-01-05 16:39:15
【问题描述】:
我正在尝试使用Iframe 的用法找出约束。
以下行运行良好,我可以在 Iframe 中看到内容:
<iframe src="https://www.w3schools.com/" height="500" width="500"></iframe>
<iframe src="https://www.w3.org/" height="500" width="500"></iframe>
但是这些行不起作用:
<iframe src="https://www.microsoft.com/en-gb/" height="500" width="500"></iframe>
<iframe src="https://www.google.com/" height="500" width="500"></iframe>
如何确定iframe 支持哪些网站,哪些不支持?有没有办法在不显示在iframe 中的情况下找到它?我想在用户输入URL 时显示一条消息以通知他web site is not supported in iframe。
【问题讨论】:
-
我的问题略有不同。我正在尝试找到一种方法,以便确定是否可以在我的页面上显示特定网站。