我試圖使用引導程序模式窗口使用其網站中的代碼。不幸的是,出於某種原因,當我使用它時,窗口無法正常工作。使用引導程序顯示模式的問題
我用這個例子:
<button type="button" class="btn btn-primary" data-toggle="modal" data-target=".bs-example-modal-sm">Small modal</button>
<div class="modal fade bs-example-modal-sm" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel">
<div class="modal-dialog modal-sm" role="document">
<div class="modal-content">
...SOME MORE CONTENT HERE...
</div>
</div>
</div>
我得到的是褪了色的屏幕和模態本身就是某處的佈局上面,而不是在瀏覽器窗口中看到。這裏可能是什麼問題?
你有沒有做過任何css/js覆蓋? – ThisGuyHasTwoThumbs
你可以添加一個小提琴嗎? –
代碼是正確的(假設你在'modal-content'下添加了正確的'modal-header','modal-body'和'modal-footer')。 似乎其他一些CSS正在壓倒其行爲。 –