HTML iframe未加载scr路径

时间:2013-08-27 21:44:45

标签: html

这是我正在使用的代码。我制作的桌子上有一个iframe

<td height="100%">
<iframe src="http://mk7vrlist.altervista.org/combocalculator/indextts.html" width="100%" height="100%">
  Your browser doesn't load this iframe.
</iframe>
</td>

顺便说一下,在我的iframe中我什么都没看到,我放的网址没有显示出来。我已经用Google搜索了但我没有找到解决方案。有什么帮助吗?

1 个答案:

答案 0 :(得分:1)

谷歌和雅虎等网站阻止他们的网页加载到iframe中

检查此stackoverflow线程google homepage will not load in an iframe

他们正在使用X-Frame-Options: Deny阻止其内容加载到iframe中。

尝试除google和yahoo以外的任何其他内容,您会发现它可以正常运行

<td height="100%">
<iframe src="http://www.w3schools.com" width="100%" height="100%">
  Your browser doesn't load this iframe.
</iframe>
</td>