弹出层的背景宽高

var bgWidth = document.body.clientWidth + 'px',
  bgHeight = document.body.clientHeight + 'px',
  alertBgNode = $('.alertMessageBg');
alertBgNode.css({'width':bgWidth,'height':bgHeight});

原文地址:https://www.cnblogs.com/mabelstyle/p/3868009.html