下面提到的代碼在我的項目中不工作,模式不顯示在瀏覽器中。bootstrap modal不工作,將此代碼粘貼到文件的位置?
<button class="btn btn-primary" data-toggle="modal" data-target=".bs-example-modal-sm">No of items purchased</button>
<div class="modal fade bs-example-modal-sm" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true">
<div class="modal-dialog modal-sm">
<div class="modal-content"><br>
<h4>hi</h4>
</div>
</div>
</div>
最好包括「下面提到的代碼」 – 2014-09-22 09:37:43
Look [Here](http://coolestguidesontheplanet.com/bootstrap/modal.php) – Celt 2014-09-22 09:38:07