Twitter引导程序选项卡功能在jsfiddle

时间:2016-05-19 14:31:31

标签: twitter-bootstrap jsfiddle

我想在jsfiddle中使用twitter bootstrap标签功能。

我将这两个网址添加为https://www.bootstrapcdn.com/

的外部资源

https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js

http://getbootstrap.com/javascript/复制并粘贴标签功能的示例。

<div>

  <!-- Nav tabs -->
  <ul class="nav nav-tabs" role="tablist">
    <li role="presentation" class="active"><a href="#home" aria-controls="home" role="tab" data-toggle="tab">Home</a></li>
    <li role="presentation"><a href="#profile" aria-controls="profile" role="tab" data-toggle="tab">Profile</a></li>
    <li role="presentation"><a href="#messages" aria-controls="messages" role="tab" data-toggle="tab">Messages</a></li>
    <li role="presentation"><a href="#settings" aria-controls="settings" role="tab" data-toggle="tab">Settings</a></li>
  </ul>

  <!-- Tab panes -->
  <div class="tab-content">
    <div role="tabpanel" class="tab-pane active" id="home">...</div>
    <div role="tabpanel" class="tab-pane" id="profile">...</div>
    <div role="tabpanel" class="tab-pane" id="messages">...</div>
    <div role="tabpanel" class="tab-pane" id="settings">...</div>
  </div>

</div>

但我无法通过点击更改标签,我做错了什么? 这是我创建的页面。

https://jsfiddle.net/fe26/twsrjph1/

0 个答案:

没有答案