Fullpage.js div 转义部分

Fullpage.js div escapes section

起初,我的页面中有两行三个 div,这是我稍后要在我的网页中使用的。但是,当我测试 'mobile view' 时,该部分中的 div 转义该部分并流入该部分下方的下一个 section/or 部分,如下所示:

有什么方法可以制作这些部分 'bigger' 以便我可以向下滚动并查看其他三个 div 下面的 div,然后进入下一个部分?或者其他一些解决方案?

Any way to make the sections 'bigger' so that I can just scroll down and view the divs below the other three divs, and then get to the next section? Or some other solution?

仅当您禁用 fullpage.js 的 autoScrolling 功能时才会发生这种情况。

您可以将 responsive 选项用作 in this example and then possibly combine it by adding the class fp-auto-height to your sections so they will have height: auto as explained here in the docs

添加 class 的最后一步,您必须自己使用 jQuery 或 Javascript 来完成,因为插件没有提供添加它的方法在一定宽度下动态。