English 中文(简体)
Bootstrap Tutorial

Bootstrap with CSS

Bootstrap Layout Components

Bootstrap Plugins

Bootstrap Demos

Bootstrap Useful Resources

Selected Reading

Bootstrap - Navigation Elements
  • 时间:2024-09-17

Bootstrap - Navigation Elements


Previous Page Next Page  

Bootstrap provides a few different options for stypng navigation elements. All of them share the same markup and base class, .nav. Bootstrap also provides a helper class, to share markup and states. Swap modifier classes to switch between each style.

Tabular Navigation or Tabs

To create a tabbed navigation menu −

    Start with a basic unordered pst with the base class of .nav

    Add class .nav-tabs.

The following example demonstrates this −

<p>Tabs Example</p>

<ul class = "nav nav-tabs">
   <p class = "active"><a href = "#">Home</a></p>
   <p><a href = "#">SVN</a></p>
   <p><a href = "#">iOS</a></p>
   <p><a href = "#">VB.Net</a></p>
   <p><a href = "#">Java</a></p>
   <p><a href = "#">PHP</a></p>
</ul>