Bootstrap导航中表单简单实现代码

导航中图标,表单的编程:

<html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE-edge"> <meta content="width=device-width,initial-scale=1"> <title>Bootstrap 101 Template</title> <link href="https://cdn.bootcss.com/bootstrap/3.3.1/css/bootstrap-theme.min.css"> <link href="https://cdn.bootcss.com/bootstrap/3.3.1/css/bootstrap.min.css"> </head> <body> <nav role="navigation"> <!-- <nav role="navigation"> --> <div> <!-- 导航图标 --> <div> <a href="#" > <img alt="Brand" src="https://www.jb51.net/article/1.jpg"> </a> </div> <!-- 导航表单 --> <form role="search"> <div> <!-- 输入 --> <input type="text" placeholder="Search"> </div> <!-- 按钮 --> <button type="submit">Submit</button> </form> <button type="button">Sign in</button> <!-- 非导航的链接 --> <p>Signed in as<a href="#"> Mark Otto</a></p> </div> </nav> <!-- 路径导航 --> <script src="https://cdn.bootcss.com/jquery/2.1.1/jquery.min.js"></script> <script src="https://cdn.bootcss.com/bootstrap/3.3.1/js/bootstrap.min.js"></script> <script src="https://cdn.bootcss.com/bootstrap/3.3.1/js/npm.js"></script> </body> </html>

结果:

Bootstrap导航中表单简单实现代码

路径导航:

<html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE-edge"> <meta content="width=device-width,initial-scale=1"> <title>Bootstrap 101 Template</title> <link href="https://cdn.bootcss.com/bootstrap/3.3.1/css/bootstrap-theme.min.css"> <link href="https://cdn.bootcss.com/bootstrap/3.3.1/css/bootstrap.min.css"> </head> <body> <!-- 路径导航 --> <ol> <li><a href="#" >home</a></li> <li><a href="#" >libray</a></li> <li>data</li> </ol> <script src="https://cdn.bootcss.com/jquery/2.1.1/jquery.min.js"></script> <script src="https://cdn.bootcss.com/bootstrap/3.3.1/js/bootstrap.min.js"></script> <script src="https://cdn.bootcss.com/bootstrap/3.3.1/js/npm.js"></script> </body> </html>

结果:

Bootstrap导航中表单简单实现代码

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

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