jquery - 带有垂直滚动条的主体的第二个模态位置(引导模态)
问题描述
我对带有 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">×</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>
我认为这与身体的滚动条有关?但我不知道如何解决它。
任何帮助表示赞赏!谢谢!西斯内普
解决方案
推荐阅读
- database-design - 如何处理“可选”循环引用
- linux - 无法在适用于 Linux 的 Windows 子系统上使用 gdb 在 VS Code 上调试 C
- html - 大型表情符号在 chrome 和移动浏览器上被切断
- ruby-on-rails - 如何每天更改链接的路径
- ruby-on-rails - 了解活动记录查询
- postgresql - 在 Postgres 中搜索和更新 JSON 数组元素
- java - 什么是 FrontController 设计模式?DispatcherServlet 使用了多少级别?
- ruby-on-rails - Rails:从数据库到 TEXTAREA 的 JSON 往返在第二次保存时转换为字符串
- cjk - Postgresql 将日文全角转换为半角
- c++ - 两个单独文件中另一个类的类方法朋友