我有一個引導模式SM,我已經做了,但現在我想改變它爲一個更大的寬度正常模態。Bootstrap Modal不工作,但模式sm是
當我刪除類'modal-sm'並替換爲'模態'時,背景會變暗,但實際的模態不顯示。
如果我手動進入Web檢查器並取消選中.modal上的「display:none」,我可以看到正確的模態彈出。
任何想法,爲什麼這不像它應該這樣做?
<a href="#" data-toggle="modal" data-target=".modal-gallery-<?= $shoots[1]['id'] ?>">Buy Gallery</a>
<!-- MODALS -->
<div class="modal fade modal-gallery-<?= $shoots[1]['id'] ?> in" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel">
<div class="modal-dialog modal">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
</div>
<div class="modal-body downloads">
<div class="buttons">
<div class="form-group">
<h2>test</h2>
</div>
</div>
</div>
</div>
</div>
</div>
類= 「模式,對話模式模式-SM」 >? – virepo
您需要_remove_'modal-sm'。不要用'modal'代替它。該類已經應用於父級。 – Turnip