x
 
<!DOCTYPE html>
<html>
<head>
  <title>Foundation 实例</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="http://www.wfuyu.com/statics/assets/foundation-5.5.3/foundation.min.css">
  <script src="http://www.wfuyu.com/statics/assets/jquery/2.0.3/jquery.min.js"></script>
  <script src="http://www.wfuyu.com/statics/assets/foundation-5.5.3/js/foundation.min.js"></script>
  <script src="http://www.wfuyu.com/statics/assets/foundation-5.5.3/js/vendor/modernizr.js"></script>
  </head>
<body style="height:1500px;padding:20px;">
<h3>Magellan 选项</h3>
<h5 class="subheader"> <code>fixed_top</code> 选项 指定了导航条距离头部的像素值。默认为 0。本实例设置为 50:</h5>
<hr>
<div data-magellan-expedition="fixed" data-options="fixed_top:50">
  <dl class="sub-nav">
    <dd data-magellan-arrival="page1"><a href="#page1">Page 1</a></dd>
    <dd data-magellan-arrival="page2"><a href="#page2">Page 2</a></dd>
  </dl>
</div>
<hr>
<div style="height:200px;background-color:#1abc9c;color:white;">
  <h3 data-magellan-destination="page1">Page1</h3>
  <a name="page1"></a>
  <p>滚动屏幕,查看导航栏上的变化。</p>
</div>
<h3 data-magellan-destination="page2">Page2</h3>
<a name="page2"></a>
<p>滚动屏幕,查看导航栏上的变化。并尝试向上滚动。</p>
<!-- 初始化 Foundation JS -->
<script>
$(document).ready(function() {
    $(document).foundation();
})
</script>