Skip to content

Instantly share code, notes, and snippets.

@miya0001
Created July 7, 2012 10:06
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save miya0001/3065723 to your computer and use it in GitHub Desktop.
Save miya0001/3065723 to your computer and use it in GitHub Desktop.
facebookのlike boxを横幅100%で指定してレスポンシブデザインに対応。
.fbcomments,
.fb_iframe_widget,
.fb_iframe_widget[style],
.fb_iframe_widget iframe[style],
.fbcomments iframe[style],
.fb_iframe_widget span{
width: 100%! important;
}
/* いいねボタンが着いてる場合は、以下のように絞ったほうがいいみたい */
.widget-container .fbcomments,
.widget-container .fb_iframe_widget,
.widget-container.fb_iframe_widget[style],
.widget-container .fb_iframe_widget iframe[style],
.widget-container .fbcomments iframe[style],
.widget-container .fb_iframe_widget span{
width: 100%! important;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment