首页 > 代码库 > herf 锚的 导航示例

herf 锚的 导航示例

<html>
<head>
<script src="http://cdn.static.runoob.com/libs/jquery/1.10.2/jquery.min.js">
</script>
<!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
<link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">

<!-- 可选的 Bootstrap 主题文件(一般不用引入) -->
<link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">

<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
<script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
</head>
<body>
<ul class="nav nav-pills nav-justified" role="tablist">
  <li role="presentation" class="active"><a href="http://www.mamicode.com/#home" role="tab" data-toggle="tab">第一个导航</a></li>
  <li role="presentation"><a href="http://www.mamicode.com/#profile" role="tab" data-toggle="tab">第二个导航</a></li>
</ul>
<div class="tab-content">
<div role="tabpanel" class="tab-pane active" id="home">111</div>
<div role="tabpanel" class="tab-pane" id="profile">222</div>
</div>
</body>
</html>

  

herf 锚的 导航示例