-2

我需要 Javascript 根据浏览器中的可用高度动态修复 iframe 高度吗?

4

1 回答 1

0

这是你想要的?

$(function(){    
    //sets the height of the iframe to the height of the browser viewport
    $("#idOfIframe").height($(window).height());
}
于 2012-11-20T16:52:16.533 回答