1

在使用 fullpage.js 插件( https://github.com/alvarotrigo/fullPage.js )时,在 div (class="section")上放置一个额外的 div 时,我正在寻找一个有效的垂直滚动解决方案。

“溢出:滚动;” 因为 top-div 不适合我。top-div 将填充通过 jquery-masonry 排序的缩略图。目前,100% 视图之外的所有缩略图都被隐藏,因为 fullpage.js 中的功能禁用了滚动。

最重要的是,当禁用 java-script 时,只显示活动的 div。从而防止按降序显示所有 div。

if(options.autoScrolling){
            $('html, body').css({
                'overflow' : 'hidden',
                'height' : '100%'
            }); 

fullpage.js 中的 autoScrolling-option 覆盖了 body css 选择器的滚动能力。

我可以想到一个额外的 div 滑动到顶部(类似于此页面上的那个:http: //neavebozorgi.com/)启用垂直滚动。

4

0 回答 0