//弹出窗口高度调整自适应
function resetDialogHeight(){
    if(window.dialogArguments == null){
        return; //忽略非模态窗口
    }
    //正文高度
    var height = document.body.scrollHeight;
    //卷进去高度
    var heightTop = document.body.scrollTop;
    window.dialogHeight=(height+heightTop+35)+"px";//防止地下状态栏所以加35
}
window.attachEvent('onload', function(){resetDialogHeight();});

相关文章:

  • 2021-10-19
  • 2022-01-02
  • 2022-12-23
  • 2022-12-23
  • 2021-06-30
  • 2021-08-11
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-04
  • 2022-02-05
  • 2022-12-23
相关资源
相似解决方案