首页 > 解决方案 > 带有垂直滚动条的主体的第二个模态位置(引导模态)

问题描述

我对带有 y 滚动条的主体中第二个模态的位置有疑问。我正在使用 Bootstrap 3.4.2(与 AdminLTE 结合使用)。

第一个模式是正确定位的:screenshot

但是第二个模态似乎向右侧移动了一点......(通过单击第一个模态中的蓝色按钮打开第二个模态): screenshot

模态是“标准的”,由标签中的数据切换/目标打开:

    <div class="modal fade" id="renamePlayer" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  <div class="modal-dialog modal-lg">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
        <h4 class="modal-title" id="myModalLabel">Rename Player</h4>
      </div>
      <div class="modal-body">  
        <table class="table">
            <tbody>
            <tr>
            <td class="col-md-2">Player:</td>
            <td class="col-md-8"><span id="player"></span></td></td>
            </tr>
            <tr>
            <td class="col-md-2">Amount:</td>
            <td class="col-md-8"><input class="form-control" type="text" id="amount" placeholder="1" maxlength="3"></td></td>
            </tr>
            </tbody>
        </table>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">CLose</button>
        <button type="button" class="btn btn-primary" id="some_id" >Some description</button>
      </div>
    </div>
  </div>
</div>  

我认为这与身体的滚动条有关?但我不知道如何解决它。

任何帮助表示赞赏!谢谢!西斯内普

标签: jquerycssmodal-dialogbootstrap-modal

解决方案


推荐阅读