用于确认的Bootstrap模式始终在页面顶部打开

时间:2017-01-27 09:39:25

标签: javascript jquery html twitter-bootstrap

我使用Bootstrap模式显示确认消息。但是,当从页面底部删除内容时,确认消息仍然位于页面顶部。

<div class="modal fade" id="deleteModal">
    <div class="modal-dialog modal-sm" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
                <h4 class="modal-title" id="myModalLabel">Confirm Delete</h4>
            </div>
            <div class="modal-body">
                <input id="deleteGroupId" type="hidden" value="" />
                <p>Do you want to proceed?</p>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">No</button>
                <button type="button" class="btn btn-danger delete-confirm-btn" data-dismiss="modal">Yes</button>
            </div>
        </div>
    </div>
</div>

0 个答案:

没有答案