jquery - 如何使 facebook 评论框宽度 100% 并响应?

标签 jquery html css facebook

同样的问题http://stackoverflow.com/questions/10862256/how-to-make-facebook-comment-box-width-100 我尝试了所有的答案,但它不再起作用了。看起来 Facebook 改变了一些东西。

最佳答案

这个 是一个 facebook 错误,在这里查看: https://developers.facebook.com/x/bugs/256568534516879/

唯一可用的解决方法是使用 javascript。

后来编辑:错误修复:你必须写:data-width="100%"

The width of the plugin. Either a pixel value or the literal 100% for fluid width. The mobile version of the Comments plugin ignores the width parameter, and instead has a fluid width of 100%. https://developers.facebook.com/docs/plugins/comments

关于jquery - 如何使 facebook 评论框宽度 100% 并响应?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22243233/

相关文章:

javascript - 在加载多个 div 时应用动画

html - 是否有仅 HTML/CSS 的解决方案(无脚本)来创建隐藏的 iframe,这些 iframe 在它们变得可见之前不会加载?

javascript - 根据按钮的值使用不同的方法

html - Css html 完全流血和居中

javascript - jQuery 表单验证检查返回 'undefined'

javascript - 如何添加事件处理程序以在 Ember.js 中路由显示的事件?

html - 在 CSS 中,我应该将字体大小更改应用到顶级元素还是最底层元素?

jquery - 使用 jQuery 获取自定义属性

javascript - jQuery click 函数只执行一次

javascript - 我可以改进这个 jQuery 代码重复吗?