Javascript 谷歌自定义搜索在底部创建了一个巨大的空白区域

Javascript 谷歌自定义搜索在底部创建了一个巨大的空白区域,javascript,google-custom-search,Javascript,Google Custom Search,在使用谷歌自定义搜索(Iframe支持)时,它会在底部创建一个巨大的空白区域?我怎样才能避免那个空白 例如:此站点[]在底部创建了一个巨大的空白 我查过来源了(http://www.google.com/afsonline/show_afs_search.js)但无法将其取出。将此iframe的高度属性更改为1260: <iframe name="googleSearchFrame" src="http://www.google.com/cse?c_id=2&amp;q=togit

在使用谷歌自定义搜索(Iframe支持)时,它会在底部创建一个巨大的空白区域?我怎样才能避免那个空白

例如:此站点[]在底部创建了一个巨大的空白


我查过来源了(http://www.google.com/afsonline/show_afs_search.js)但无法将其取出。

将此iframe的高度属性更改为1260:

<iframe name="googleSearchFrame" src="http://www.google.com/cse?c_id=2&amp;q=togitsu&amp;cx=000096980916426724425:keok8sbpuem&amp;cof=FORID:10&amp;ie=UTF-8&amp;ad=n9&amp;num=10&amp;rurl=http%3A%2F%2Fwww.town.togitsu.nagasaki.jp%2Fsearch%2Fpub%2FDefault.aspx%3Fc_id%3D2%26q%3Dtogitsu%26cx%3D000096980916426724425%3Akeok8sbpuem%26cof%3DFORID%3A10%26ie%3DUTF-8&amp;siteurl=http%3A%2F%2Fstackoverflow.com%2Fquestions%2F10647487%2Fgoogle-custom-search-create-a-huge-blank-space-at-the-bottom" frameborder="0" width="795" height="1260" marginwidth="0" marginheight="0" hspace="0" vspace="0" allowtransparency="true" scrolling="no"></iframe>

通过将高度设置为1260,您将使iframe固定高度。
$(document).ready(function() {
    $('[name="googleSearchFrame"]').attr("height","1260");
});