請下列提供的語法 , 貼至後台:版面>自訂JS全站程式碼。

if($('#idIframe').length){
$('#idIframe').load(function(){
$(this).contents().find("#loadMoreButton .load-more").on('click', function() {
setTimeout(function(){
setIframeHeight(document.getElementById('idIframe'));
}, 300);
});
});
}
【語法功能】:點擊更多文章按鈕時,重新判斷畫面高度。