2017-05-04 57 views
0

就像標題所說。我想插入延伸到窗口末尾的FB頁面源。這可能嗎?當我將它設置在iframe上時,800px是它想要去的最高點。我到處尋找答案,但沒有運氣。Facebook Page Feed - Full Height

當然,我用過Facebook page plugin。下面是我的代碼的輪廓,使用引導4.

.card { 
 
    position: fixed; 
 
    width: 340px; 
 
    height: 100vh; 
 
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> 
 
<div class="card p-0"> 
 
    <iframe src="https://www.facebook.com/plugins/page.php?href=https%3A%2F%2Fwww.facebook.com%2FMercedesAMG&tabs=timeline&width=340&height=500&small_header=false&adapt_container_width=true&hide_cover=false&show_facepile=true&appId" width="340" height="500" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowTransparency="true"></iframe> 
 
</div>

謝謝!

回答

1

可以通過您的應用程序儀表板(在Facebook Developers網站上)設置默認高度。將其設置爲「流暢」應該允許您隨時調整其大小。

然後,您應該將100%height應用於iframe本身,並將min-height設置爲您的容器。

+0

我真是個白癡。我怎麼想那個......但是,謝謝,夥計! – Retros