获取网页元素的几个高度、滚动条高度
摘要:获取元素、浏览器、页面显示区域(可视区域)的高度: $('.class').height(); $(window).height(); $(document).height(); 获取元素、浏览器、页面 的滚动条到顶部的垂直高度: $('.class').scrollTop(); $(window)
阅读全文
posted @ 2020-05-01 10:15
posted @ 2020-05-01 10:15