iframe 高度自适应

SetParentIframHeight(parseInt($("#hot", parent.document)[0].style.height.match(/d*/)) + 130 * data.length + 'px');

SetParentIframHeight("1000px");

function SetParentIframHeight(height) {
/*iframe子页面的方法*/
    try
    {
        $("#hot", parent.document).height(height);
    }
    catch (e) {

    }
}

/*hot为iframe id*/
原文地址:https://www.cnblogs.com/kongxp/p/6406669.html