我制作了一个 moda 对话框,现在正在尝试将标签插入其中,但无法让标签显示内容。标签的部分代码:
http://plnkr.co/edit/eGRmkzDvo4lYGCjzA5q7
如何将标签页放置在模式中?
我制作了一个 moda 对话框,现在正在尝试将标签插入其中,但无法让标签显示内容。标签的部分代码:
http://plnkr.co/edit/eGRmkzDvo4lYGCjzA5q7
如何将标签页放置在模式中?
http://plnkr.co/edit/Oj681B1YbLU1dJEiWHZp?p=preview
<link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.2.2/css/bootstrap-combined.min.css" rel="stylesheet">
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.0.3/angular.min.js"></script>
<script src="//netdna.bootstrapcdn.com/twitter-bootstrap/2.2.2/js/bootstrap.min.js"></script>
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h3 ng-hide="newUser">Heading</h3>
</div>
<ul class="nav nav-tabs" id="tabContent">
<li class="active"><a href="#details" data-toggle="tab">Details</a></li>
<li><a href="#access-security" data-toggle="tab">Access / Security</a></li>
<li><a href="#networking" data-toggle="tab">Networking</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="details">
Details tab
<div class="control-group">
<label class="control-label">Instance Name</label>
</div>
</div>
<div class="tab-pane" id="access-security">
content 0
</div>
<div class="tab-pane" id="networking">
content 1
</div>
</div>
您缺少 data-toggle 属性:
<li><a href="#details" data-toggle="tab">Details</a></li>
以及您想首先显示的任何选项卡的活动状态:
<li class="active"><a href="#details" data-toggle="tab">Details</a></li>
<div class="tab-pane active" id="details">