为什么我的模态窗口没有出现?

时间:2017-06-13 10:45:43

标签: html bootstrap-modal

以下是我对codepen的链接:https://codepen.io/saisree/pen/XgKeyR

当我点击添加按钮模式弹出窗口没有出现? 有人可以解决这个问题吗?

 <a href="#" class="btn width100 FunctionBtn" data-toggle="modal" data-target="#basicModal"><span class="BtnText">Add</span></a>

<div class="modal fade" id="basicModal" tabindex="-1" role="dialog" aria-labelledby="basicModal" aria-hidden="true">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h4 class="modal-title" id="myModalLabel">Basic Modal</h4>
      </div>
      <div class="modal-body">
        <h3>Modal Body</h3>
      </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>

1 个答案:

答案 0 :(得分:0)

忘记你的文件:)包括bootstrap.js和jquery。对于CSS包括bootstrap.css。

codepen.io/anon/pen/LLZmRY