我已经进入到这个我的代码使用Facebook评论:Facebook的评论切断的
<div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:comments href="google.com" num_posts="10" width="610"></fb:comments>
但它削减的意见,这样http://cl.ly/77fB和装载图形不会消失。我尝试删除所有我拥有的CSS和JS,它仍然执行相同的操作。我查看了Facebook注释API生成的代码和iframe设置了200px的高度。这里的IFRAME代码:
<iframe id="f1c27030c" name="f1f67bf5c4" scrolling="no" style="border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; overflow-x: hidden; overflow-y: hidden; height: 200px; width: 610px; " class="fb_ltr" src="http://www.facebook.com/plugins/comments.php?channel_url=http%3A%2F%2Fstatic.ak.fbcdn.net%2Fconnect%2Fxd_proxy.php%3Fversion%3D2%23cb%3Df3ec50dad4%26origin%3Dfile%253A%252F%252Flocalhost%252Ff17ab9b71%26relation%3Dparent.parent%26transport%3Dpostmessage&href=google.com&locale=en_US&numposts=12&sdk=joey&width=610"></iframe>
不知道还能做什么。谢谢!
更新:
,是因为我加载从注释文件的本地Chrome是说这不是安全加载了一切:http://cl.ly/77X7
我上传的文件到我的服务器,并加载一路。
感谢您的帮助!
你想要发生什么? [我没有得到加载图片](http://jsfiddle.net/wesley_murch/dZkdP/),它看起来像你有它设置为10个职位。你想要一个滚动条或显示所有10个职位? – 2011-05-27 08:10:29
我希望它不会被切断。它不应该需要一个滚动条。如果您访问http://developers.facebook.com/docs/reference/plugins/comments/并将其设置为10条评论,但不会将其截断,则会显示全部10条评论。 – Marc 2011-05-27 08:29:33
对不起,我想我现在明白了这个问题。你从API返回错误的高度,是吗?尽管如此 - 它似乎为我工作:http://jsfiddle.net/wesley_murch/dZkdP/2/ – 2011-05-27 09:01:39