摘要: var scrollTop = $(document).scrollTop(); //滚动条高度 var clientHeight = document.documentElement.clientHeight; //屏幕的可见高度 var domHeight = 452; //元素的高度 var h = ((clientHeight - domHeight) / 2) + scrollTop;... 阅读全文
posted @ 2019-04-17 17:17 大智如蠢 阅读(1199) 评论(0) 推荐(0) 编辑