我知道那个话题 -- fullpage.js how to create slide anchors and scroll to them?
但我需要为部分创建 anchor 。
这是我的 page .
每个部分底部的滚动按钮应该滚动到下一个部分,但我不明白如何让它工作。
最佳答案
说明in the documentation你甚至have examples of it available .
您现在正在初始化没有 anchor 选项的 fullPage.js,事实上,没有任何单一选项:
$('#wrap').fullpage();
只需按照文档中的详细说明添加 anchor 选项,例如:
$('#wrap').fullpage({
anchors: ['first', 'second', 'third']
});
关于javascript - 如何使用 Fullpage JS 在部分创建自己的链接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30006939/