Facebook Like-Box最小宽度更改为292px。任何改变这种行为的方式? [英] Facebook Like-Box min-width changed to 292px. Any way to change this behavior?
问题描述
一切看起来很乱,搜索后我发现原因是Facebook Like Box(最小宽度似乎已经更改为292像素)是一个250px的容器。
https:/ /developers.facebook.com/docs/reference/plugins/like-box/
我已经有多少年的宽容= 220px,Facebook的这种遗产行为变得非常糟糕。该盒子在我的网站上有它的位置,现在我需要弄清楚在哪里放置它。
使用我当前的网站布局,不可能在不同的地方移动Facebook的框,所以我不得不删除如果现在。
任何想法为什么Facebook这样做,如果有任何解决方法?
谢谢,
Dan
我不知道为什么Facebook已经做到了,但是您可以使用CSS轻松设置自己的宽度:
.fb-like-box span,.fb -like框iframe {
width:220px!important;
}
I've just noticed a change in one of my websites html layout.
Everything looked messy and after searching i found out that the cause was that the Facebook Like Box (which min width seems to have changed to 292px) was insisde a 250px container.
https://developers.facebook.com/docs/reference/plugins/like-box/
I've had the like-box there for years widh a width=220px and it's kind of awckard that Facebook changed this "legacy" behavior. The box had its place on my site and now i need to figure out where to put it.
With my current website layout it's impossible to move the facebook like box in a different place; so i had to remove if for now.
Any ideas why Facebook did this and if there's any workaround?
Thanks,
Dan
I don't know why Facebook has done it, but you can easily set your own width using CSS:
.fb-like-box span, .fb-like-box iframe {
width: 220px !important;
}
这篇关于Facebook Like-Box最小宽度更改为292px。任何改变这种行为的方式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!