Responsive, Stackable, AJAX and more.
Using Bootstrap 3? Include the patch file before bootstrap-modal and check out the demo page.
- <div id="responsive" class="modal hide fade" tabindex="-1" data-width="760">
- <div class="modal-header">
- <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
- <h3>Responsive</h3>
- </div>
- <div class="modal-body">
- <div class="row-fluid">
- <div class="span6">
- <h4>Some Input</h4>
- <p><input type="text" class="span12"></p>
- <p><input type="text" class="span12"></p>
- <p><input type="text" class="span12"></p>
- <p><input type="text" class="span12"></p>
- <p><input type="text" class="span12"></p>
- <p><input type="text" class="span12"></p>
- <p><input type="text" class="span12"></p>
- </div>
- <div class="span6">
- <h4>Some More Input</h4>
- <p><input type="text" class="span12"></p>
- <p><input type="text" class="span12"></p>
- <p><input type="text" class="span12"></p>
- <p><input type="text" class="span12"></p>
- <p><input type="text" class="span12"></p>
- <p><input type="text" class="span12"></p>
- <p><input type="text" class="span12"></p>
- </div>
- </div>
- </div>
- <div class="modal-footer">
- <button type="button" data-dismiss="modal" class="btn">Close</button>
- <button type="button" class="btn btn-primary">Save changes</button>
- </div>
- </div>
- <div id="stack1" class="modal hide fade" tabindex="-1" data-focus-on="input:first">
- <div class="modal-header">
- <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
- <h3>Stack One</h3>
- </div>
- <div class="modal-body">
- <p>One fine body…</p>
- <p>One fine body…</p>
- <p>One fine body…</p>
- <input type="text" data-tabindex="1">
- <input type="text" data-tabindex="2">
- <button class="btn" data-toggle="modal" href="#stack2">Launch modal</button>
- </div>
- <div class="modal-footer">
- <button type="button" data-dismiss="modal" class="btn">Close</button>
- <button type="button" class="btn btn-primary">Ok</button>
- </div>
- </div>
- <div id="stack2" class="modal hide fade" tabindex="-1" data-focus-on="input:first">
- <div class="modal-header">
- <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
- <h3>Stack Two</h3>
- </div>
- <div class="modal-body">
- <p>One fine body…</p>
- <p>One fine body…</p>
- <input type="text" data-tabindex="1">
- <input type="text" data-tabindex="2">
- <button class="btn" data-toggle="modal" href="#stack3">Launch modal</button>
- </div>
- <div class="modal-footer">
- <button type="button" data-dismiss="modal" class="btn">Close</button>
- <button type="button" class="btn btn-primary">Ok</button>
- </div>
- </div>
- <div id="stack3" class="modal hide fade" tabindex="-1" data-focus-on="input:first">
- <div class="modal-header">
- <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
- <h3>Stack Three</h3>
- </div>
- <div class="modal-body">
- <p>One fine body…</p>
- <input type="text" data-tabindex="1">
- <input type="text" data-tabindex="2">
- </div>
- <div class="modal-footer">
- <button type="button" data-dismiss="modal" class="btn">Close</button>
- <button type="button" class="btn btn-primary">Ok</button>
- </div>
- </div>
聯(lián)系客服