Zurb foundation Zurb基金会5麦哲伦没有设置活动类 我使用Zurb的基础MaGelLink粘性导航,除了没有将Active类应用到菜单中:,我已经做好了一切工作。 $(document).foundation({ magellan : { active_class: 'active', threshold: 0 } });

Zurb foundation Zurb基金会5麦哲伦没有设置活动类 我使用Zurb的基础MaGelLink粘性导航,除了没有将Active类应用到菜单中:,我已经做好了一切工作。 $(document).foundation({ magellan : { active_class: 'active', threshold: 0 } });,zurb-foundation,Zurb Foundation,您的初始化代码是有效的,下面是一把小提琴,显示它正在工作: 我想说,问题在于您的HMTL-确保您已将“目的地”设置为与导航中的“到达”匹配 i、 像这样的 导航项目: <div data-magellan-expedition="fixed"> <dl class="sub-nav"> <dd data-magellan-arrival="home"><a href="#home">Home</a></dd>

您的初始化代码是有效的,下面是一把小提琴,显示它正在工作:

我想说,问题在于您的HMTL-确保您已将“目的地”设置为与导航中的“到达”匹配

i、 像这样的

导航项目:

<div data-magellan-expedition="fixed">
   <dl class="sub-nav">
      <dd data-magellan-arrival="home"><a href="#home">Home</a></dd>
      <dd data-magellan-arrival="about"><a href="#about">About</a></dd>
   </dl>
</div> 
<a name="home"></a>
<h3 data-magellan-destination="home">Home</h3> 
<!-- home content here -->

<a name="about"></a>
<h3 data-magellan-destination="about">About</h3>
<!-- about content here -->

各自的内容区域:

<div data-magellan-expedition="fixed">
   <dl class="sub-nav">
      <dd data-magellan-arrival="home"><a href="#home">Home</a></dd>
      <dd data-magellan-arrival="about"><a href="#about">About</a></dd>
   </dl>
</div> 
<a name="home"></a>
<h3 data-magellan-destination="home">Home</h3> 
<!-- home content here -->

<a name="about"></a>
<h3 data-magellan-destination="about">About</h3>
<!-- about content here -->

家
关于
虽然,没有更多的代码形式,我只是猜测(提示,提示)