如何使Facebook评论窗口小部件流畅的宽度? [英] How to make Facebook comments widget a fluid width?

查看:130
本文介绍了如何使Facebook评论窗口小部件流畅的宽度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可能使Facebook的评论窗口小部件流畅的宽度?他们的文档会显示 fb:comments xfbml或iframe指定为:

Is it possible to make Facebook's comments widget a fluid width? Their documentation shows a width field for the fb:comments xfbml or iframe which is specified as:


  • width - 插件的宽度,以像素为单位。最低建议宽度:400像素。

这可能是不可能的...

So maybe it's not possible...

推荐答案

我发现了一个使用css的解决方案。灵感来自这篇文章
http://css-tricks.com/2708- override-inline-styles-with-css /

I found a solution using css. Inspiration came from this article http://css-tricks.com/2708-override-inline-styles-with-css/

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

这篇关于如何使Facebook评论窗口小部件流畅的宽度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆