弹出层的背景宽高

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

posted @ 2014-07-25 14:40  mabel_on_line  阅读(233)  评论(0编辑  收藏  举报