bootstrap导航栏、下拉菜单、表单的简单应用实例

制作效果图如下:

bootstrap导航栏、下拉菜单、表单的简单应用实例

代码如下(以后做东西可以改改就能直接用):

<!DOCTYPE html> <html lang="zh-cn"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta content="width=device-width, initial-scale=1"> <title>Hello World</title> <link href="https://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css"> </head> <body> <nav role="navigation"> <div> <!-- Brand and toggle get grouped for better mobile display --> <div> <button type="button" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"> <span>Toggle navigation</span> <span></span> <span></span> <span></span> </button> <a href="#">某管理系统</a> </div> <!-- Collect the nav links, forms, and other content for toggling --> <div> <ul> <li><a href="#">首页</a></li> <li> <a href="#" data-toggle="dropdown">功能<span></span></a> <ul role="menu"> <li><a href="#">业务功能</a></li> <li><a href="#">信息建立</a></li> <li><a href="#">信息查询</a></li> <li><a href="#">信息管理</a></li> <li></li> <li><a href="#">系统设置</a></li> <li><a href="#">设置</a></li> </ul> </li> </ul> <form role="search"> <div> <input type="text" placeholder="username"> <input type="password" placeholder="password"> </div> <button type="submit">登录</button> </form> </div><!-- /.navbar-collapse --> </div><!-- /.container-fluid --> </nav> <script src='https://cdn.bootcss.com/jquery/1.11.1/jquery.min.js'></script> <script src='https://cdn.bootcss.com/bootstrap/3.2.0/js/bootstrap.min.js'></script> </body> </html>

以上所述是小编给大家介绍的bootstrap导航栏、下拉菜单、表单的简单应用实例解析,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对脚本之家网站的支持!

您可能感兴趣的文章:

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wwjwjj.html