0

这是我正在使用的代码。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 中,我什么也看不到,我输入的网址也没有显示。我已经用谷歌搜索了这个,但我没有找到解决方案。有什么帮助吗?

4

1 回答 1

1

像 google 和 yahoo 这样的网站会阻止他们的页面加载到 iframe 中

检查这个stackoverflow线程谷歌主页不会在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>
于 2013-08-27T21:53:58.120 回答