我想用Iframe
用法找出约束。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
时显示一条消息。
的可能的复制错误的图像[如何显示google.com在iframe?](https://stackoverflow.com/questions/8700636/how -go-show-google-com-in-an-iframe) – Ridderhoff
我的问题稍有不同。我试图找出一种方法,以便我可以了解是否可以在我的网页上显示特定的网站。 – MKR