无法在wordpress页面或小部件

时间:2015-11-21 05:25:22

标签: mysql wordpress bootstrap-modal

下面是按钮点击时运行bootstrap模式弹出窗口的代码,当我在默认的wordpress主题中运行此源代码时,它将提供正确的输出,但是当我在另一个主题(购买的主题)中运行相同的代码时,它将不会显示单击弹出窗口。 是否有任何bootstrap,js链接问题或plz建议我的其他问题。

<!DOCTYPE html><html lang="en"><head>  <title>Bootstrap Example</title>  meta charset="utf-8">  <meta name="viewport" content="width=device-width, nitial-scale=1">  <link rel="stylesheet" href="bootstrap-3.3.5-ist/css/bootstrap.min.css">  <script src="jquery-1.11.3.js"></script>  <script rc="bootstrap-3.3.5-dist/js/bootstrap.min.js"></script></head><body><div class="container">  <h2>Modal Example</h2>  <!-- Trigger the modal with a button -->  <button type="button" class="btn btn-info btn-lg" data-toggle="modal" data-target="#myModal">Open Modal</button>  <!-- Modal -->  <div class="modal fade" id="myModal" role="dialog">
<div class="modal-dialog">

  <!-- Modal content-->
  <div class="modal-content">
    <div class="modal-header">
      <button type="button" class="close" data-dismiss="modal">&times;</button>
      <h4 class="modal-title">Modal Header</h4>
    </div>
    <div class="modal-body">
      <p>Some text in the modal.</p>
    </div>
    <div class="modal-footer">
      <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
    </div>
  </div>

</div>  </div></div></body></html>

0 个答案:

没有答案