onresize在ie和火狐浏览器上bug问题解决

var w=0
 var h=0
 window.onresize = function(){
  var ww = document.documentElement.clientWidth
  var hh = document.documentElement.clientHeight
  if(ww!=w || hh!=h){
   location.reload()
   w=ww
   h=hh
  }
 }

原文地址:https://www.cnblogs.com/dieyf/p/4293686.html