bootstrap模态对话框

时间:2023-03-10 01:00:25
bootstrap模态对话框

bootstrap模态对话框###

前提是引入bootstrap的css和js的东西

data-backdrop="static"代表的是点击旁边的内容,不进行关闭操作,但是esc的时候还是进行操作

<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" data-backdrop="static">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span
class="sr-only">Close</span></button>
<h4 class="modal-title" id="myModalLabel"></h4>
</div>
<div class="modal-body" style="overflow:scroll; height: 700px;">
<div class="spinner"><div class="double-bounce1"></div><div class="double-bounce2"></div></div>
</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>
</div>
</div>

bootstrap模态对话框