使用Bootstrap创建选项卡式导航菜单
要创建选项卡式导航菜单,请从基本无序列表开始,其基类为.nav,然后添加类.nav-tabs。
您可以尝试运行以下代码来创建选项卡式导航菜单
示例
<!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>
<p>My Website</p>
<ul class = "nav nav-tabs">
<li class = "active"><a href = "#">Home</a></li>
<li><a href = "#">About</a></li>
<li><a href = "#">Products</a></li>
<li><a href = "#">Contact Us</a></li>
</ul>
</body>
</html>
以上是 使用Bootstrap创建选项卡式导航菜单 的全部内容, 来源链接: utcz.com/z/316457.html