首页 > 代码库 > bootstrap开发tab选项卡事例
bootstrap开发tab选项卡事例
<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=http://www.mamicode.com/"../book/css/bootstrap.css" rel="stylesheet" type="text/css" />
<script src=http://www.mamicode.com/"../file/jquery.js" type="text/javascript"></script>
<script src=http://www.mamicode.com/"../book/js/bootstrap.js" type="text/javascript"></script>
</head>
<body>
<ul class="nav nav-tabs">
<li><a href=http://www.mamicode.com/"#home" data-toggle="tab">Home
<li><a href=http://www.mamicode.com/"#profile" data-toggle="tab">Profile
<li><a href=http://www.mamicode.com/"#message" data-toggle="tab">Message
<li><a href=http://www.mamicode.com/"#set" data-toggle="tab">Set
</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选项卡事例