我在我的网站上嵌入了一个 Facebook 页面:
<iframe src="http://www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2FIACTTV&width=1200&colorscheme=light&show_faces=true&border_color&stream=true&header=true&height=635" scrolling="yes" style="border:none; overflow:hidden; width:1200px; height:930px; background: white;" allowtransparency="true" frameborder="0">
</iframe>
框显示为 500 像素宽度,但我似乎无法将内容设置为 1200 像素。 任何人都有设计 likebox iframe 的经验吗?
我试过:
iframe #u_0_0 div {
width: 1200px !important;
}
最佳答案
Facebook 似乎只允许插件的 max-width 为 500px。
来自 Facebook 开发者文档:
width - The pixel width of the plugin. Min. is 180 & Max. is 500
参见 here
关于html - 在网站上设计 facebook iframe,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32425495/