Bootstrap navbar-default 类
Bootstrap 中的 navbar-default 类用于创建导航栏。
你可以尝试运行以下代码来实现 navbar-default 类
示例
<!DOCTYPE html> <html> <head> <title>Bootstrap Example</title> <link href = "/bootstrap/css/bootstrap.min.css" rel = "stylesheet"> <script src = "/scripts/jquery.min.js"></script> <script src = "/bootstrap/js/bootstrap.min.js"></script> </head> <body style = "background: #F5CBA7;"> <nav class = "navbar navbar-default" role = "navigation"> <div class = "navbar-header"> <a class = "navbar-brand" href = "#">Cars</a> </div> <div> <ul class = "nav navbar-nav"> <li class = "active"><a href = "#">BMW</a></li> <li><a href = "#">Audi</a></li> </ul> </div> </nav> </body> </html>
广告
数据结构
网络
RDBMS
操作系统
Java
iOS
HTML
CSS
Android
Python
C 编程
C++
C#
MongoDB
MySQL
Javascript
PHP