0

单击“喜欢按钮”后,我想删除“评论框”。

我有 box_count 并使用以下代码:

<div class="fb-like" data-href="..." data-width="450" data-layout="box_count" data-show-faces="false" data-send="false"></div>

我看到了这个页面,但不起作用。

如何从盒子计数中删除评论?谢谢。

4

2 回答 2

0
<style>
  #fb-container {
    height: 20px !important;
    width: 93px !important;
    overflow: hidden !important;      
  }
</style>

<div id="fb-container">
    <div id="fb-root">
    <div class="fb-like" data-href="https://www.facebook.com/youraddr" data-layout="button_count" data-width="100" data-show-faces="false" data-share="false"></div>
</div>

于 2014-08-07T06:36:15.887 回答
0

试试这个 CSS 覆盖

.fb_edge_widget_with_comment span.fb_edge_comment_widget iframe.fb_ltr {
     display: none !important;
}
于 2013-08-15T23:14:13.887 回答