1.运行http://www.runoob.com/try/try.php?filename=bootstrap3-plugin-tab
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Bootstrap 实例 - 标签页(Tab)插件</title>
<link rel="stylesheet" href="https://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="https://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>
必须引入bootstrap的css、js和jquery
<ul id="myTab" class="nav nav-tabs">
<li class="active">
<a href="#home" data-toggle="tab"> 菜鸟教程</a>
</li>
<li><a href="#ios" data-toggle="tab">iOS</a></li>
<li><a href="#java" data-toggle="tab">java</a></li>
</ul>
</body>
</html>