再看那柔弱的柳树吧,在寒冬余威尚盛时节,就早早苏醒过来,望着冰冻的河面,迎着凛冽的寒风,它微微察觉出一丝春意,于是,不顾一切地率先吐翠,淡淡地披起娇黄嫩绿的新装。沿河望去,枝梢间烟纱雾彀,一片生机,这情景仿佛一首动人的歌,一首热烈向往春天的歌,一首报告春的信息的歌,一首表达美好信念的歌。我在想:既然迎春花被人称作报春花,那么,柳树可不可以叫作报春树呢春来了,万千柳枝在春风中袅袅舞动。柳树是热爱春天的,春天也是热爱柳树的。
制作效果图如下:
代码如下(以后做东西可以改改就能直接用):
<!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>Hello World</title> <link rel='stylesheet' rel="nofollow noopener noreferrer" href="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css"> </head> <body> <nav class="navbar navbar-default" role="navigation"> <div class="container-fluid"> <!-- Brand and toggle get grouped for better mobile display --> <div class="navbar-header"> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" rel="nofollow noopener noreferrer" href="#">某管理系统</a> </div> <!-- Collect the nav links, forms, and other content for toggling --> <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> <ul class="nav navbar-nav"> <li class="active"><a rel="nofollow noopener noreferrer" href="#">首页</a></li> <li class="dropdown"> <a rel="nofollow noopener noreferrer" href="#" class="dropdown-toggle" data-toggle="dropdown">功能<span class="caret"></span></a> <ul class="dropdown-menu" role="menu"> <li class="disabled"><a rel="nofollow noopener noreferrer" href="#">业务功能</a></li> <li><a rel="nofollow noopener noreferrer" href="#">信息建立</a></li> <li><a rel="nofollow noopener noreferrer" href="#">信息查询</a></li> <li><a rel="nofollow noopener noreferrer" href="#">信息管理</a></li> <li class="divider"></li> <li class="disabled"><a rel="nofollow noopener noreferrer" href="#">系统设置</a></li> <li><a rel="nofollow noopener noreferrer" href="#">设置</a></li> </ul> </li> </ul> <form class="navbar-form navbar-right" role="search"> <div class="form-group"> <input type="text" class="form-control" placeholder="username"> <input type="password" class="form-control" placeholder="password"> </div> <button type="submit" class="btn btn-default">登录</button> </form> </div><!-- /.navbar-collapse --> </div><!-- /.container-fluid --> </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>
以上所述是小编给大家介绍的bootstrap导航栏、下拉菜单、表单的简单应用实例解析,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对网站的支持!
本文bootstrap导航栏、下拉菜单、表单的简单应用实例解析到此结束。要纠正别人之前,先反省自我有没有犯错。小编再次感谢大家对我们的支持!