Implement the drop-down menu items and form navigation bar (two menu items, one drop-down menu and login form navigation bar) based on Bootstrap, And the bootstrap drop-down menu

Source: Internet
Author: User

Implement the drop-down menu items and form navigation bar (two menu items, one drop-down menu and login form navigation bar) based on Bootstrap, And the bootstrap drop-down menu

As follows:


The implementation code is as follows:

<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
< title > navigation bar < / Title >
<link rel="stylesheet" href=" //netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
</head>
<body>
<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#menu">
<span class="sr-only"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
A management system</a>
</div>
<div class="collapase navbar-collapse" id="menu">
<ul class="nav navbar-nav">
< Li class = "active" ></a></li>
<li class="dropdown">
<a href="#" data-toggle="dropdown" role="button">
function
<span class="caret"></span>
</a>
<ul class="dropdown-menu">
< Li class = "dropdown header" > business function</li>
<li>< a href = "ා" > information creation</a></li>
<li>Information query</a></li>
<li>Information management</a></li>
<li role="separetor" class="divider"></li>
< Li class = "dropdown header" > system functions</li>
<li>< a href = "ා" > Settings</a></li>
</ul>
</li>
<li>< a href = "ා" > help</a></li>
</ul>
<form class="navbar-form navbar-right">
<div class="form-group">
<input type="text" class="form-control" placeholder="username">
<input type="text" class="form-control" placeholder="password">
< button type = "button" class = "BTN BTN default" > log in < / button >
</div>
</form>
</div>
</div>
</nav>
<script src="http://cdn.bootcss.com/jquery/1.11.1/jquery.min.js"></script>
<script src="http://cdn.bootcss.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
</body>
</html> 

The above section describes the Bootstrap-based drop-down menu items and form navigation bars (two menu items, one drop-down menu and login form navigation bar). I hope this will be helpful to you, if you have any questions, please leave a message and the editor will reply to you in time. Thank you very much for your support for the help House website!


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.