0

所以我在我的页面上添加了一个类似 Facebook 的按钮,到目前为止一切都很好,但问题是它一直试图比我告诉它的范围更广,并且它溢出到我的其他内容中。

<div class="fb-like" data-href="https://www.facebook.com/tangoalphatango" data-send="false" data-width="600" data-show-faces="true"></div>

如果我添加一个溢出:隐藏样式并将高度设置为 65px,这将切断它试图添加的额外朋友图像,这是一个快速修复。

但是,我正在尝试提出一个更优雅的解决方案。我正在尝试让 Facebook 的like 按钮按照我告诉它的操作,即只有 600 像素宽。

4

1 回答 1

0

It seems that setting a height ( 65px in this case ) and setting the overflow to hidden is the solution I'll go with, with no other answers to choose from. I'm sure facebook generally doesn't appreciate the appearance of their like button being changed, but as long as it's overflowing into the remainder of my page I'll have to control it myself.

于 2012-10-10T00:16:37.557 回答