jquery 网页缩放事件

window.onresize = function(){

  var width=$("body").width();
  var height=$("body").height();
  alert("height:"+height+" width:"+width)

}

  

posted @ 2020-06-22 10:01  wc_nan  阅读(1482)  评论(0编辑  收藏  举报