Bootstrap导航栏默认类
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>
以上是 Bootstrap导航栏默认类 的全部内容, 来源链接: utcz.com/z/321909.html