这是我正在使用的代码。我做的桌子上有一个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里面,我什么也没看到,我放的网址也没有显示出来。我在谷歌上搜索过,但我找不到解决办法。有什么帮助吗?
发布于 2013-08-27 21:53:58
像google和yahoo这样的网站阻止他们的页面被加载到iframe中。
检查这个堆栈溢出线程google homepage will not load in an iframe
他们正在使用X-Frame-Options: Deny来阻止他们的内容在iframe中加载。
尝试除谷歌和雅虎之外的其他任何东西,你就会发现它是有效的。
<td height="100%">
<iframe src="http://www.w3schools.com" width="100%" height="100%">
Your browser doesn't load this iframe.
</iframe>
</td>https://stackoverflow.com/questions/18475994
复制相似问题