为什么外部网站没有嵌入?

时间:2015-08-11 19:19:03

标签: embed dokuwiki

我试图将网站mcmaster.com嵌入到dokuwiki中,而像bbc.com这样的网站在iframe中加载得很好,mcmaster和google.com不加载,它们只显示一个空白屏幕。这是因为这些网站允许不允许嵌入吗?我使用了错误的语法吗?我也试过https。

{{url>http://www.google.com}}

<html>
<iframe width="1600" height="1200" src="http://www.google.com/?gws_rd=ssl"></iframe>
<iframe width="1024" height="768" src="http://www.bbc.com" style="-webkit-transform:scale(0.5);-moz-transform-scale(0.5);"></iframe>
</html>

1 个答案:

答案 0 :(得分:0)

Google就是问题所在。英国广播公司应该工作。

“原因是,Google正在发送”X-Frame-Options:SAMEORIGIN“响应标头。此选项可防止浏览器显示未与父网页在同一域中托管的iFrame。”< / p>

来源:How to show google.com in an iframe?

您的语法是正确的:https://www.dokuwiki.org/plugin:iframe 确保插件安装正确。 试试http://example.com/