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 - fullpage.js 滚动 slider

javascript - for循环(每次迭代都会产生一个 promise )完成后如何返回单个 promise ?

javascript - 如何处理图像背景的加载状态?

jquery - 滚动时如何更改菜单事件链接?

javascript - Fullpage.js - 视频和页面调整大小问题

jquery - Fullpage.js 有时在手机上没有响应

javascript - 使用 gulp 构建 extjs

javascript - 使用箭头函数 react this.setState 导致控制台出错

javascript - jquery ajax - 为什么 .load() 无法加载自身页面?

javascript - 添加动态系列