4
在800px之后在scrollDown上显示div
我要从页面顶部向下滚动800px后显示隐藏的div。到目前为止,我已经有了这个示例,但是我想需要修改它才能达到我想要的目的。 编辑: [并且当scrollUp且高度小于800px时,此div应该隐藏] HTML: <div class="bottomMenu"> <!-- content --> </div> CSS: .bottomMenu { width: 100%; height: 60px; border-top: 1px solid #000; position: fixed; bottom: 0px; z-index: 100; opacity: 0; } jQuery的: $(document).ready(function() { $(window).scroll( function(){ $('.bottomMenu').each( function(i){ var bottom_of_object = $(this).position().top + $(this).outerHeight(); var bottom_of_window = $(window).scrollTop() + $(window).height(); if( …