我使用Twitter的引导模式插件以下标记:
<div class="tabbable">
<ul class="nav nav-tabs">
<li class="active"><a href="#tabPeople" data-toggle="tab">People</a></li>
<li><a href="#tabRoles" data-toggle="tab">Roles</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active fade in" id="tabPeople">
<a data-toggle="modal" href="#modalEditPerson1">Name</a>
<div class="modal hide fade in" id="modalEditPerson1">
<div class="modal-header">
<button class="close" data-dismiss="modal">
×</button>
<h3>
Name</h3>
</div>
<div class="modal-body">
<p>
One fine body…</p>
</div>
<div class="modal-footer">
<a href="#" class="btn" data-dismiss="modal">Close</a> <a href="#" class="btn btn-primary">
Save changes</a>
</div>
</div>
</div>
<div class="tab-pane fade" id="tabRoles">
<p>
Role stuff here.</p>
</div>
</div>
</div>
这就提出了一个模式,但不褪色它在此页面上的演示: http://twitter.github.com/bootstrap/javascript.html#modals
更新我已经意识到这个问题是,它是嵌套在.tabbable的div也使用.fade我已经更新上面的HTML中。