/* 模态框居中 */ .bootbox-container { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1049; overflow-y: auto; } .bootbox-container:empty { position: static; } .modal { display: table; width: 600px; height: 100%; margin: 0 auto; position: static; } .modal-dialog { display: table-cell; vertical-align: middle; }<div class="bootbox-container"></div>
bootbox.setDefaults({container:'.bootbox-container'});
bootbox居中
最新推荐文章于 2021-10-23 12:54:39 发布