标签:bootstrap开发tab选项卡事例 bootstrap bootstrap开发 tab选项卡 js开发
<html>
<head>
<title>选项卡</title>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<link href="../book/css/bootstrap.css" rel="stylesheet" type="text/css" />
<script src="../file/jquery.js" type="text/javascript"></script>
<script src="../book/js/bootstrap.js" type="text/javascript"></script>
</head>
<body>
<ul class="nav nav-tabs">
<li><a href="#home" data-toggle="tab">Home</a></li>
<li><a href="#profile" data-toggle="tab">Profile</a></li>
<li><a href="#message" data-toggle="tab">Message</a></li>
<li><a href="#set" data-toggle="tab">Set</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="home">home</div>
<div class="tab-pane" id="profile">profile</div>
<div class="tab-pane" id="message">message</div>
<div class="tab-pane" id="set">set</div>
</div>
</body>
</html>
效果:
标签:bootstrap开发tab选项卡事例 bootstrap bootstrap开发 tab选项卡 js开发
原文地址:http://blog.csdn.net/y_f123/article/details/42190895