Responsive Facebook Comments CSS Hack Broken

后端 未结 17 1740
渐次进展
渐次进展 2020-12-12 22:48

I was using:

.fb-comments, .fb-comments span, .fb-comments iframe[style] {
    width: 100% !important;
}

To make Facebook Comments responsi

17条回答
  •  离开以前
    2020-12-12 23:31

    Here's a new CSS-only solution. Did this for a project I'm working on today (July 16, 2014) and it works beautifully.

    HTML

    CSS

    .fb_iframe_widget,
    .fb_iframe_widget span,
    .fb_iframe_widget span iframe[style] {
      min-width: 100% !important;
      width: 100% !important;
    }
    

    The trick are data-width: 100% and min-width: 100% !important; width: 100% !important;

提交回复
热议问题