官术网_书友最值得收藏!

  • JavaScript by Example
  • Dani Akash S
  • 165字
  • 2021-07-02 18:39:10

Navigation bar

The first part of our document's body is the navigation bar <nav>. The navigation bar usually contains the primary set of links for navigation in a website. Since we are building only a single page in this chapter, we can leave the navbar with only our page title.

The navigation bar is styled using Bootstrap. The class .navbar styles the respective element as the primary navigation bar of the page. The .navbar-inverse class adds a dark color to the navigation bar and the .navbar-fixed-top class attaches the navigation bar to the top of the screen using a fixed position. The contents of the navigation bar are wrapped inside a Bootstrap container (div.container). The page title is written inside div.navbar-header as an anchor tag with the class .navbar-brand, which instructs Bootstrap that this is the brand name/title of the application.

The Bootstrap navigation bar is highly customizable. To learn more about this topic, refer to W3Schools' Bootstrap tutorial: https://www.w3schools.com/bootstrap/ or Bootstrap's official documentation: http://getbootstrap.com/getting-started/.
主站蜘蛛池模板: 宁德市| 嘉禾县| 离岛区| 佛坪县| 揭东县| 耿马| 诏安县| 乡城县| 大荔县| 玉田县| 蓬莱市| 宜都市| 大关县| 白玉县| 澄城县| 左权县| 枞阳县| 富阳市| 尚志市| 井冈山市| 鹿邑县| 鹤峰县| 安溪县| 博野县| 和龙市| 宁陵县| 林甸县| 读书| 遂溪县| 木兰县| 巨鹿县| 青海省| 沁源县| 宁海县| 玛纳斯县| 嘉禾县| 天津市| 原阳县| 麻阳| 治县。| 定边县|