markdown Boostrap模态

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown Boostrap模态相关的知识,希望对你有一定的参考价值。

### Modal Markup

```html
<!-- Trigger the modal with a button -->
<button type="button" class="btn btn-info btn-lg" data-toggle="modal" data-target="#myModal">Open Modal</button>

<!-- Modal -->
<div id="myModal" class="modal fade" role="dialog">
  <div class="modal-dialog">

    <!-- Modal content-->
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">&times;</button>
        <h4 class="modal-title">Modal Header</h4>
      </div>
      <div class="modal-body">
        <p>Some text in the modal.</p>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
      </div>
    </div>

  </div>
</div>
```

* To **trigger** the modal, you'll need to use a button or a link (line 2)
  * The element **MUST** contain the following attrtibutes:
    * `data-toggle=modal`
    * `data-target=#idOfModal`

以上是关于markdown Boostrap模态的主要内容,如果未能解决你的问题,请参考以下文章

html Boostrap模态全屏

css Boostrap 3模态垂直中心

boostrap 模态框

boostrap框架小细节

boostrap插件

Summernote 模态锁定在纯 Bootstrap 模态中