window.onload = function () {
    changeDivHeight();
}
//当浏览器窗口大小改变时,设置显示内容的高度  
window.onresize = function () {
    changeDivHeight();
}
function changeDivHeight() {
    var h = document.body.clientHeight;//获取页面可见高度   
    document.getElementById("RiskMapDiv").style.height = h - 76 - 65 - 20 + "px";

    // 每次窗口大小改变后调用这个方法
    map.invalidateSize(true);
}

https://blog.csdn.net/supertree_l/article/details/82790751

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-06
  • 2022-01-26
  • 2022-12-23
猜你喜欢
  • 2021-12-08
  • 2022-12-23
  • 2022-12-23
  • 2021-11-22
  • 2022-12-23
  • 2021-08-06
  • 2022-12-23
相关资源
相似解决方案