728x90
반응형

https://getbootstrap.com/docs/4.4/components/modal/

 

Modal

Use Bootstrap’s JavaScript modal plugin to add dialogs to your site for lightboxes, user notifications, or completely custom content.

getbootstrap.com

 

가져와서 붙이면 된다!

       <div class="modal" tabindex="-1" role="dialog">
            <div class="modal-dialog" role="document">
                <div class="modal-content">
                    <div class="modal-header">
                        <h5 class="modal-title">모달 제목</h5>
                        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                            <span aria-hidden="true">&times;</span>
                        </button>
                    </div>
                    <div class="modal-body">
                        <p>검색하시겠습니까?</p>
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-secondary" data-dismiss="modal">아니요</button>
                        <button type="button" class="btn btn-primary">네</button>
                    </div>
                </div>
            </div>
        </div>

위 코드를 응용해서 아래처럼 만들었다!

728x90
반응형

+ Recent posts