嘿我想在页面上找一个喜欢的盒子。当我输入代码facebook给我(这是Iframe)一切似乎都很好但是当我预览它(Chrome,IE,Firefox,Safari)时它说无法找到网页。它让我上了墙!我究竟做错了什么!
<iframe src="//www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2F%23%21%2Fpages%2FGarlands-Restaurant-Bar-Grill%2F206020489468223&width=192&colorscheme=light&show_faces=true&border_color&stream=true&header=true&height=590" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:192px; height:590px;" allowTransparency="true"></iframe>
答案 0 :(得分:1)
在src中缺少前缀 http:。试试这个:
<iframe src="http://www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2F%23%21%2Fpages%2FGarlands-Restaurant-Bar-Grill%2F206020489468223&width=192&colorscheme=light&show_faces=true&border_color&stream=true&header=true&height=590" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:192px; height:590px;" allowTransparency="true"></iframe>