<script>
jQuery(window).scroll( function (){
var topScroll = jQuery(window).scrollTop();
var topPin = $('.mobile_pin').offset().top-50;
});
</script>
jQuery 实时获取元素距离顶部高度
最新推荐文章于 2024-08-06 14:30:38 发布
<script>
jQuery(window).scroll( function (){
var topScroll = jQuery(window).scrollTop();
var topPin = $('.mobile_pin').offset().top-50;
});
</script>