我被卡住了鉴于Bootstrap 3.0即将发布,我决定一起推出一个新项目。事情进展顺利,但对于我的生活,我无法弄清楚如何在Bootstrap 3.0中进行Modal Dialog。
有没有人有一个简单的例子?
解决方法
您可以尝试构建文档:
Compile Twitter bootstrap 3 docs (How to)?也可以从文档中输入
http://bassjobsen.weblogs.fm/explore-and-install-twitter-bootstrap-3/:
<!-- Button trigger modal --> <a data-toggle="modal" href="#myModal" class="btn btn-primary btn-lg">Launch demo modal</a> <!-- Modal --> <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h4 class="modal-title">Modal title</h4> </div> <div class="modal-body"> ... </div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal">Close</button> <button type="button" class="btn btn-primary">Save changes</button> </div> </div><!-- /.modal-content --> </div><!-- /.modal-dialog --> </div><!-- /.modal -->@H_404_9@