javascript - Fullpage.js 的导航问题,未显示事件状态

标签 javascript jquery fullpage.js

我正在使用 fullpage.js 开发一个网站。使用自定义菜单。所有导航工作正常,但事件状态未显示。我一直在寻找解决方案,但我能找到的只是如何使用带有 fullpage.js 菜单选项的自定义菜单

我不太擅长查询和 js,如果能提供一些帮助就更好了。

这是该网站的链接。 http://development.darktown.ch

最佳答案

您的 data-menunchor 属性值应与 fullpage.js 初始化中的 anchors 值匹配:

anchors: ['home', 'about', 'locations', 'contact'],

现在你的还没有:

<ul id="menu" class="menu">
    <li data-menuanchor="section0"><a href="#home">home</a></li>
    <li data-menuanchor="section1"><a href="#about">uber Dark Town</a></li>
    <li data-menuanchor="section2"><a href="#locations">standorte</a></li>
    <li data-menuanchor="section3"><a href="#contact">contact</a></li>
</ul>

如文档中所述:

In order to link the elements of the menu with the sections, an HTML 5 data-tag (data-menuanchor) will be needed to use with the same anchor links as used within the sections. Example:

关于javascript - Fullpage.js 的导航问题,未显示事件状态,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40651829/

相关文章:

javascript - 我如何在 javascript 中验证年份文本框?

jquery - TinyMCE 和 jQuery Mobile 文本区域

javascript - Highcharts - Solid Gauge - 不一致的样式和不正确的值

css - Fullpage.js 和 fp-auto-height-responsive 错误

javascript - Chrome 扩展程序 : How to display tab objects?

javascript - 如何在本地保存重新排序列表的新顺序? (Javascript/Jquery——不可排序插件)

javascript - 动画在向上方向之前执行

javascript - typescript 类型检查机制

javascript - 通过JS添加类