// 根据底部菜单的大小调整iframe的大小
$(window).resize(function(){
iframeHeight();
});
iframeHeight();
function iframeHeight(){
var sHeight=document.documentElement.clientHeight;
var bottom_height=document.documentElement.clientWidth/375*58;
$(".iframe").css("height",(sHeight-bottom_height)+"px");
// console.log(sHeight-bottom_height)
// console.log($(".iframe").css("height"));
// console.log($(".iframe").css("height"));
};
.nav_bj {bottom: 0;left: 0;width: 7.5rem;height: 1.16rem;}
.adiv {width: 100%;height:100%;position: fixed;top: 0rem;left:0rem;}
.iframe {width: 100%; height: 100%; top: 0;left: 0;border: none;margin: 0;position: absolute;background: none;}
//iframe数据获取方式
iframe中如何获取子级和父级元素方法总结_51CTO博客_Iframe从父级获取子级问题
疑难杂症:报错 $(...)[0].contentWindow.xxx is not a function