在我的
bootstrap 3.3.7
网站上,当模式打开时,整个身体都会得到 'style="15px"'
。当我打开模态时,这会移动我的顶部导航(固定导航)15px
。我无法使用 CSS
来删除填充,因为它是一个元素。
我尝试在身体上使用
'left: 15px'
进行 modal-open
类(以及各种其他 CSS
选项),但无济于事。我没有将其添加到我的 HTML
中,所以这是一个引导程序。模式的链接位于顶部导航内,但是当我检查元素时,单击该链接时,模式弹出窗口 HTML
显示在导航 div 下方。
这是页面,单击右上角的“登录”按钮。我希望当我单击模式时导航保持不变。我不想让它动。请帮忙
Bootstrap还在body上添加了类
.modal-open
你可以玩这个类
.modal-open .navbar-fixed-top {
right: 15px;
}
css 样式对我不起作用,但从
this._disableOverFlow()
中删除 bootstrap.min.js 中的
this._disableOverFlow(), this._setElementAttributes(this._element, Ie, e => e + t), this._setElementAttributes(Le, Ie, e => e + t), this._setElementAttributes(Oe, De, e => e - t);
为我工作