Facebook Like Box - photos appearing stretched

吃可爱长大的小学妹 提交于 2019-12-11 13:33:29

问题


I've just added the Facebook like box to www.glasgow.ac.uk/careers.

It seems to be working fine, except that photos are appearing stretched/distorted in the box (i.e. one at the moment is about twice the height it should be.)

We've changed from the default box width, but even at the default this was happening with our pictures. Is there any way to fix this?

Many thanks,

Jamie


回答1:


Jamie:

Based on multiple examples, I have inferred the algorithm that Facebook are using to resize photos in the Like Box. It's unusual and it's not one that I would choose. I suspect that when they get a handle on what they're actually doing, they will change it.

But right now, as per my calculations, the only large photo size that will shrink without squeezing, is 170 x 320.

David




回答2:


It should also be noted that the CSS that Facebook uses in the iframe has a max width of 120px set.



来源:https://stackoverflow.com/questions/7689824/facebook-like-box-photos-appearing-stretched

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!