aytsoft
$(window).resize(function () {          //当浏览器大小变化时
    alert($(window).height());          //浏览器时下窗口可视区域高度
    alert($(document).width());        //浏览器时下窗口文档的宽度
    alert($(document.body).height());     //浏览器时下窗口文档body的高度
    alert($(document.body).outerHeight(true)); //浏览器时下窗口文档body的总高度 包括border padding margin
});

 

分类:

技术点:

相关文章:

  • 2021-12-09
  • 2021-08-21
  • 2021-09-25
  • 2021-12-09
  • 2022-12-23
  • 2021-11-30
  • 2022-02-21
  • 2021-08-15
猜你喜欢
  • 2022-01-07
  • 2022-01-11
  • 2022-12-23
  • 2021-10-19
  • 2021-05-17
  • 2021-11-29
相关资源
相似解决方案