How can I make the Facebook Like button's width automatically resize?

后端 未结 8 1106
清酒与你
清酒与你 2020-12-13 13:53

I\'m implementing the Facebook Like Button, but I\'m running into some trouble with the width. I\'m using the JavaScript SDK implementation, not the direct iframe.

A

8条回答
  •  眼角桃花
    2020-12-13 14:56

    I added this to my CSS:

    div.fb-like.fb_iframe_widget > span {
     width: 100% !important;
    }
    
    div.fb-like.fb_iframe_widget{
     width: 100%;
    }
    

提交回复
热议问题