title: Bootstrap: ScrollSpy and smooth scroll
body: <p>I have two problems with Bootstrap: I can't add <code>ScrollSpy</code> and smooth scroll at my Boostrap site.</p>
  
  <pre><code>&lt;body data-spy="scroll" data-target="#test"&gt;
  &lt;nav class="navbar navbar-default navbar-fixed-top" role="navigation"&gt;
  &lt;!-- Brand and toggle get grouped for better mobile display --&gt;
  &lt;div id="test" class="navbar-header"&gt;
  &lt;button type="button" class="navbar-toggle" data-toggle="collapse" data-  target=".navbar-ex1-collapse"&gt;
    &lt;span class="sr-only"&gt;Toggle navigation&lt;/span&gt;
    &lt;span class="icon-bar"&gt;&lt;/span&gt;
    &lt;span class="icon-bar"&gt;&lt;/span&gt;
    &lt;span class="icon-bar"&gt;&lt;/span&gt;
  &lt;/button&gt;
  &lt;a class="navbar-brand" href="#"&gt;L&lt;/a&gt;
  &lt;/div&gt;
  
  &lt;!-- Collect the nav links, forms, and other content for toggling --&gt;
   &lt;div id="test" class="collapse navbar-collapse navbar-ex1-collapse"&gt;
  &lt;ul class="nav navbar-nav"&gt;
    &lt;li class=""&gt;&lt;a href="#Chi Sono"&gt;Chi Sono&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a class="scroll" href="#Conoscenze"&gt;Conoscenze&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href="#OS" &gt;Sistemi operativo&lt;/a&gt;&lt;/li&gt;
  
  
   &lt;/div&gt;&lt;!-- /.navbar-collapse --&gt;
    &lt;/nav&gt;
  </code></pre>
  
  <p>This is the navbar code. I've tried many solutions, but to no avail. How do I add this effect?</p>