简体   繁体   中英

Facebook Feed Plugin adaptative height

I have embed the Facebook Plugin on the "news section" of a web-page, I'm making. The news section has two columns . The left column will display the 5 latest posts and the right column will show the Facebook feed.

As you can imagine, the left column's height will depend on the content of the posts. What i would like to do, is to make the right column's height (Facebook Feed) adapt to the right's column height (make it 100% of parent's height).

I have tried lots of different things, like height 100%, position absolute, even jquery,..., but nothing seems to work. It feels like the height of the iframe is hard-coded. The only way i found to change the height is through the data-height="" attribute, but i can't make that adapt the left column's height.

There is an option for adaptive-width , but none for adaptive height .

Any ideas?

不,没有这样的选项-唯一受支持的参数是“ 页面插件”文档中列出的参数-确实有一个自适应宽度选项,但高度则不是

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM