In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)06/01 Report--
Default navigation bar
Making the default navigation bar can be divided into the following steps:
1. Add (ul class= "nav navbar-nav") style to ul
two。 Add a layer of div or nav (new ps:HTML5 attribute) to the ul, and add a style (div class= "navbar nabar-default")
1 2 3 eat 4 sleep 5 dozen Warriors 6 7
As shown below:
So easy bar, qaq.
Navigation bar with form
1. Based on the default navigation bar, another form.
Apply style in 2.form (form class= "navbar-form")
12 3 eat 4 sleep 5 dozen warriors 6 7 8 9 10 11 12
As shown below:
Damn, I made a mistake. Actually, I want to write about playing rockets.
Third, forms, drop-down menus and other redundant navigation bars
The last comprehensive example, otherwise write one by one, the editor coding till dawn, talk less nonsense, straight to the material.
12 3 eat 4 sleep 5 dozen Warriors 6 7 Guinean 8 9 4 010 4 14 15 111 14 12 14 15 16 17 18 19 20
As shown below:
Ahem, the general navigation has a big title, as shown in the picture below:
Implementation steps:
1. Add styles to div (div class= "navbar-header")
two。 Add a tag to this div (a class= "navbar-brand")
Navbar-brand (brand) is also the headline!
12 3 Aldridge 4 5 6 eat 7 sleep 8 dozen Warriors 9 10 Guinness 11 12 4 purl 013 4 purl 114 4 purl 215 16 17 18 19 20 21 22 23
4. Inverse navigation bar
The inverse navigation bar is actually the second style navigation bar provided by the Bootstrap framework, just changing the name of the "navbar-deafult" class to "navbar-inverse". Everything else remains the same, as shown in the following figure:
Personally, I still like this style, which is pretentious.
Fixed navigation bar
As the name implies, it is actually fixed style.
The Bootstrap framework provides two ways to fix the navigation bar:
.navbar-fixed-top: the navigation bar is docked at the top of the browser window
.navbar-fixed-bottom: the navigation bar is docked at the bottom of the browser window
The method is very simple. You only need to append the corresponding class name to the outermost container navbar of the navigation bar.
. .
VI. Responsive navigation bar
12 3 4 5 6 Toggle Navigation 7 8 9 10 11 12 my home page 13 14 15 16 17 eat 18 sleep 19 rockets 20 21 22 23
I have a set of inverse navigation bars. Now let's take a look at the wide screen and narrow screen respectively, as shown below:
Inside is the button in the upper right corner of the narrow screen, and the span label has three bars.
Now let's talk about line 5 of the above code, data-toggle= "collapse" data-target= "# navbar" aria-expanded= "false" aria-controls= "navbar". Let me introduce them one by one.
The representative of data-toggle= "collapse" tells js what event to trigger, and the coolapse here is "stretch and fold"
Data-target= "# navbar" represents who wants to display it in a stretched and folded way, bound to ID.
Aria-expanded= "false" represents whether to expand or not, false.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.