How to remove the “Facebook social plugin” text?

前端 未结 10 1365
生来不讨喜
生来不讨喜 2020-12-20 15:29

I\'m using the comments facebook social plugin When I embed it, the script created an iFrame that has the text \"Facebook social plugin\" with the facebook logo at the botto

10条回答
  •  旧巷少年郎
    2020-12-20 16:00

    The other solutions have the side effect of pushing things down. Here's a Less/Sass/SCSS solution that accounts for the pull down:

    div.fb_iframe_widget span {
      overflow: hidden;
      margin-top: -32px;
    
      iframe {
        top: 32px;
      }
    }
    

    They've set the iframe to position: absolute, presumably to reduce your chances of pulling this off. That makes top easy to set, and voila.

    They also set their iframe to overflow: hidden, so you can attack that with a shorter style if you prefer, and just end up with a larger gap at bottom of the comments box:

    div.fb_iframe_widget iframe {
      box-sizing: border-box;
      padding-bottom: 32px;
    }
    

    Chomp.

提交回复
热议问题