我在模态的右下角有一个滚动条。我删除了页脚部分。它仍然显示空间,我在右侧和左侧都有卷轴。我在我的模态中显示图像。如何删除此卷轴并解决问题?
这里是HTML
<div id="myModal" class="modal fade" role="dialog">
<div class="modal-dialog">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title">modal title</h4>
</div>
<!-- Modal content-->
<div class="modal-content">
<div class="modal-body">
<img src="img/model/logo.jpeg" />
</div>
</div>
</div>
</div>
和CSS -
#myModal {
top:10%;
width:445px;
left: 35%;
outline: none;
}
.modal-body {
position:relative;
width: auto;
height:auto;/* This avoids image to go off the container */
}
.modal-dialog{
width: 440px;
}