javascript - 如何使用 Fullpage JS 在部分创建自己的链接

标签 javascript jquery html css fullpage.js

我知道那个话题 -- 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/

相关文章:

jquery - 从 javascript 调用 asp 经典函数时出错

javascript - 使用 jQuery 锁定文本区域?

javascript - Knockout JS - 绑定(bind)选择列表的数据对象

html - 停止调整窗口大小的视差

html - 有没有办法让父 div 在 CSS 中调整其子内容的大小?

javascript - jsx 文件映射错误 : Unable to generate source map (ReactJS)

javascript - 尝试将 jquery $.when() & .done() 与 2x $.ajax 调用一起使用,但 did() 立即被调用

html - 强制 CSS 样式

php - 将数组从 php 发送到 javascript

javascript - webpack bundle 中的导出函数