html - Facebook iframe(likebox)底部截断

标签 html css facebook

除了 Opera 和 IE10 之外,这似乎在所有浏览器中都会发生(Opera 和 IE10 是吗?) http://jsfiddle.net/puh67/

CSS:

.Facebook,
.Facebook iframe
{
    height: 400px;
}​

HTML:

<div class="Facebook">
  <iframe src="//www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2Fpages%2FFriskisSvettis-Landskrona%2F299504533446227&width=292&height=395&show_faces=false&colorscheme=light&stream=true&border_color&header=false" scrolling="no" frameborder="0" allowtransparency="true"></iframe>
</div>​

Image

最佳答案

如果页面完全加载,我会建议使用 javascript 调整 iframe 大小...

$("#frame")[0].setAttribute("height", "200");

关于html - Facebook iframe(likebox)底部截断,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13738842/

相关文章:

javascript - 我怎样才能在 jquery 中为边框半径设置动画?

html - 重叠 "Zoom"div 阻塞文本和选项选择

使用选择下拉列表的 PHP native 验证错误

iOS - 简单的 Facebook 身份验证

php - 使用 Facebook 服务器端登录让用户登录不起作用

jquery - 从我的页面中删除嵌入的YouTube

css - 在悬停伪上改变 child

html - 当我选择 'View' 时模块窗口不会打开

swift - 正确使用 facebook app-scoped user id

javascript - 无法测试每个循环中检查的输入