window.onresize = function(){
this.opHtight()
}
//给浏览器添加窗口大小改变事件
window.onresize = function(){
this.opHtight()
}
opHtight(){
var h=document.documentElement.clientHeight;//可见区域高度
var allmapBox = document.getElementById('allmap');
allmapBox.style.height=h+"px";
},