我想用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