Bootstrap 简明教程
Bootstrap - Navs and Tabs
本章将讨论 Bootstrap 导航栏和标签。使用 .nav 类创建导航菜单,使用 .tab 类创建标签导航菜单。
This chapter will discuss about Bootstrap navs and tabs. Create navigation menu using .nav class and tab navigation menu using .tab class.
Base nav
所有 Bootstrap 导航组件都以基类 .nav (使用 flexbox 构建的组件)构建。导航组件可用于添加链接列表以浏览网站中的其他页面。
All types of Bootstrap’s navigation components are built with base class .nav (component build with flexbox). The nav components can be used to add a list of links to browse to other pages within the website.
-
The items can be added within the .nav-item class.
-
To add links within the item class use .nav-link class.