盒子中引入 html.
并且将背景html隐藏
$("#settingpagebox").load("settingPage.html"); //盒子引入html
var pagebox = document.getElementById('settingpagebox');
console.log(pagebox);
pagebox.style.width = document.documentElement.clientWidth + 'px';
pagebox.style.height = document.documentElement.clientHeight + 'px';
console.log(document.documentElement.clientWidth);
pagebox.style.background = '#fff'; //设置背景色为白色
window.onresize = function() { //html的显示宽高为浏览器的款高.=随浏览器大小变化
pagebox.style.width = document.documentElement.clientWidth + 'px';
pagebox.style.height = document.documentElement.clientHeight + 'px';
}
打开子窗口:
window.open("settingPage.html", "settingPage", "width=600, height=500,");
博文:https://bbs.csdn.net/topics/310108392
//父窗口
dataExport
//子窗口