フッターではなくモーダルボディ内にモーダルボタン(「OK」、「DISMISS」など)が表示されるようにするにはどうすればよいですか? 写真を背景に設定しているため、この写真の上にボタンが浮かびます。私はそれの上に置かれた背景とコントロールと、同じセクションのボタンを表示するには、同じことを使用しているモーダルボディの内側にモーダルボタンを表示させるにはどうすればよいですか?
<div class="container">
<div class="modal1 fade"
id="XXX"
tabindex="-1"
aria-labelledby="XXX"
role="dialog"
aria-hidden="true">
<div class="modal_wrapper1">
<div class="modal-dialog1">
<div class="modal-body">
<img class="img-responsive" src="Ximage" alt="image" />
<a href="" target="_blank" class="btn">button!</a>
<a href="" type="button" class="btn" data-dismiss="modal">Close</a>
</div>
</div>
</div>
</div>
</div>
.modal1{
width: 100%;
position: fixed;
text-align: center;
margin: 0px auto; top: 0px;
left: 0px; bottom: 0px; right: 0px;
z-index: 1050;
}
.modal_wrapper1{
display: table;
overflow: auto;
overflow-y: scroll;
height: 100%;
-webkit-overflow-scrolling: touch; outline: 0;
text-align: center;
margin: 0px auto;
}
.modal-dialog1{
margin-top: 0px;
display: table-cell;
vertical-align: middle;
margin: 0px 20px;
}
あなたは写真上のボタンをしたいと言っている場合は、あなたがする必要があるだろう、すべてはあなたの ''
タグの上に '' タグを上に移動です。しかし、そのような小さなコードスニペットで言うことは難しい。 –
buschschwick