twitter bootstrap 文档站点,左侧导航固定在移动布局的顶部。例如:http: //twitter.github.com/bootstrap/javascript.html
我想在不使用 ...docs.css 的情况下做同样的事情,就像在 Bootstrap 站点中所做的那样。
目前,我面临的问题是,当您滚动浏览内容时,“附加导航”会停留在移动维度的内容之上。
<div class="row">
<div class="span3">
<div data-spy="affix">
<ul class="nav nav-list nav-stacked">
<li><a href="#objective"> Objective </a>
</li>
<li><a href="#experience"> Experience </a>
</li>
<li><a href="#skills"> Skills </a>
</li>
<li><a href="#education"> Education </a>
</li>
</ul>
</div>
</div>
<div class="span9">
<section id="objective">
<div class="page-header">
<h1>
Objective: <small> Do good </small>
</h1>
</div>
</section>
<section id="experience">
<div class="page-header">
<h1>
Exprience: <small> I worked at a bit </small>
</h1>
</div>
</section>
<section id="skills">
<div class="page-header">
<h1>
skills: <small> my skillz </small>
</h1>
</div>
</section>
<section id="education">
<div class="page-header">
<h1>
education: <small> I went to school </small>
</h1>
</div>
</section>
</div>
我希望使用最新的引导程序 v2.3.1 将“附加导航”固定在移动布局的顶部。我该怎么做?有什么建议么?