これは、Twitter の Bootstrap モーダルのベース HTML です。
<div id="editModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="modalLabel" aria-hidden="true">
<form class="form-horizontal updater" data-type="undefined" data-id="undefined">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="modalLabel">Edit Content</h3>
</div>
<div class="modal-body"></div>
<div class="modal-footer">
<button type="submit" class="btn btn-primary">
<strong>Save Changes</strong>
</button>
<button class="btn" data-dismiss="modal" aria-hidden="true">Cancel</button>
</div>
</form>
</div>
私の Firebug が言うように、modal
クラスには次のものがありますz-index: 1050
。私はこのような要素を追加しようとしていました:
<div class="width: 1000px height: 200px; background: #f00; z-index: 9999;">hi there</div>
に:
<div class="modal-body"></div>
しかし、うまくいきません。
では、これらすべての Bootstrap コンポーネントに対して要素を設定するにはどうすればよいでしょうか?