私はモーダルヘッダー内にオーバーレイポップオーバーを追加しようとしていました。ポップオーバーが表示されたとき、ポップオーバーは元の位置を無視します。ブートストラップ - モーダルヘッダー内のオーバーレイポップオーバー
HTML
<div id="myModal" class="modal hide fade">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"
aria-hidden="true">×</button>
<div class="pull-right">
<div class="overlay">
<a class="btn"
rel="popover"
href="#"
name="link-menu"
data-content="Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. "
data-original-title="A Title"
data-placement="bottom">
popover menu
</a>
</div>
</div>
<h3>What is Lorem Ipsum?</h3>
</div>
<div class="modal-body">
<p>
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
</p>
</div>
<div class="modal-footer">
<a href="#" class="btn">Close</a>
<a href="#" class="btn btn-primary">Save changes</a>
</div>
<a href="#myModal" role="button" class="btn" data-toggle="modal">Launch demo modal</a>
CSS
.overlay {
position: relative;
background-color: rgba(0, 0, 0, 0);
}
.overlay.on {
position: fixed;
top: 0;
left: 0;
height: 100%;
width: 100%;
background-color: rgba(0, 0, 0, 0.5);
z-index: 10;
}
は、ここで私は達成することができたもののフィドルです。 http://jsfiddle.net/rjrimorin/p6BAD/50/
大変助かりました!ありがとうございました!
こんにちはNeophyte、答えはありがたいですが、私はオーバーレイが必要なので、ポップオーバーが表示されたときにはポップオーバーにのみ焦点を当て、モーダルは解除不可能になるようにします。 – monsieuroman