我已經看到一個工作的twitter引導子模態插件適用於舊版bootstrap,但它似乎並未被作者更新爲v3。Bootstrap 3子模式?
我確實改變了標記以符合v3,但它看起來像CSS/JS需要一些額外的「黑客」。有沒有人找到了解決方法或其他一些插件,允許他們可以共享這個功能?非常感謝
github上https://github.com/jakiestfu/Bootstrap-SubModal
小提琴:http://jsfiddle.net/chou_one/eS7us/3/
<!-- Sub-Modal -->
<div id="mySubModal" class="modal sub-modal hide" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-body">
<p class="center">Are you sure you want to close your account?<br />You won't be able to undo this.</p>
<hr />
<form class="form-horizontal" role="form">
<div class="form-group">
<label for="inputEmail1" class="col-lg-2 control-label">Email</label>
<div class="col-lg-10">
<input type="email" class="form-control" id="inputEmail1" placeholder="Email">
</div>
</div>
<div class="form-group">
<label for="inputPassword1" class="col-lg-2 control-label">Password</label>
<div class="col-lg-10">
<input type="password" class="form-control" id="inputPassword1" placeholder="Password">
</div>
</div>
</form>
</div>
<div class="modal-footer">
<button class="btn btn-primary" data-dismiss="submodal" aria-hidden="true">Cancel</button>
<button class="btn btn-danger" data-dismiss="submodal">Close Account</button>
</div>
</div>
哇,這整理出我的問題。我一直將它嵌入父模態中,並且它正在破壞它!謝謝@Bass –
我希望每當我偶然發現這件事時,我都可以高舉。 – isherwood