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