封装窗口尺寸(window)的宽高方法

window.innerHieght/ innerWidth ie9及以上兼容

ie8 及以下:

标准模式: CSS1Compat 

 x: document.documentElement.clientWidth,

y: document.documentElement.clientHeight

混杂模式: BackCompat

 x: document.body.clientWidth,

 y: document.body.clientHeight

 

相关文章:

  • 2021-12-06
  • 2021-08-11
  • 2022-12-23
  • 2021-05-28
  • 2022-01-07
  • 2022-12-23
  • 2021-10-09
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-06-18
  • 2022-01-21
  • 2021-06-23
  • 2021-12-02
  • 2022-12-23
相关资源
相似解决方案