0
我想知道一些问题让bootstrap的滚动工作。输出页面正常生成没有任何javascript错误。无法滚动到工作
但是当滚动我只是不能获得CSS类来应用活动。
下面是我设置的JSFiddle。
感谢
<body>
<div id="wrapper" data-spy="scroll" data-target="main-navigation">
<section class="container">
<header id="header">
<div id="sticky_navigation" class="shadow">
<div class="container"> <a href="/" id="logo"></a>
<div id="navigation-wrapper">
<nav id="main-navigation">
<!-- MAIN NAVIGATION-->
<ul id="main-menu">
<li><a id="one" href="#one">One</a>
</li>
<li><a id="Two" href="#Two">Two</a>
</li>
<li><a id="Three" href="#Three">Three</a>
</li>
</ul>
</nav>
</div>
</div>
</div>
</header>
</section>
<section id="one">One</section>
<section id="two">Two</section>
<section id="three">Three</section>
</div>
<script src="http://twitter.github.com/bootstrap/assets/js/bootstrap-scrollspy.js"></script>
</body>
[Bootstrap 3 Scrollspy可能不会与Affix和Panel一起工作](http://stackoverflow.com/questions/20526728/bootstrap-3-scrollspy-not-working-with-affix-and-panel) – Blazemonger 2013-12-11 18:37:42