0

嘿,我正在尝试在页面上添加一个类似框。当我输入 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&amp;width=192&amp;colorscheme=light&amp;show_faces=true&amp;border_color&amp;stream=true&amp;header=true&amp;height=590" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:192px; height:590px;" allowTransparency="true"></iframe>
4

1 回答 1

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&amp;width=192&amp;colorscheme=light&amp;show_faces=true&amp;border_color&amp;stream=true&amp;header=true&amp;height=590" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:192px; height:590px;" allowTransparency="true"></iframe>
于 2011-10-26T00:47:04.733 回答