各位大大好,今天有試寫一個Bootstrap的Modal
因為是第一次接觸,但是不知道為何放到網頁上就沒有辦法跳出視窗
不知道有沒有大大能夠幫忙看看發生了啥問題
圖為我的html語法
<div class="card-body">
<!-- Button trigger modal -->
<button class="btn btn-success" data-toggle="modal" data-target="#myModal">提醒我</button>
<!-- 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">
<h4 class="modal-title" id="myModalLabel">警示訊息</h4>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">×</button>
</div>
<div class="modal-body">是否要將本活動加入提醒?</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">關閉</button>
<button type="button" class="btn btn-primary">確認送出</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal -->
</div>