【问题标题】:backdrop overlap my modal form using Bootstrap背景使用 Bootstrap 与我的模态表单重叠
【发布时间】:2017-06-28 07:24:17
【问题描述】:

我的模态表单有问题。当我点击登录时,我的表单将显示但背景重叠。这是我之前的 JS:

$('#user-login').on('click', function(e) {
        e.preventDefault();
        $('#s-auth-login').modal({
            'backdrop': false, //if true the backdrop will overlap
            'show': true
        });
    });

我强迫背景隐藏。但是有没有其他方法可以做到这一点?我想在表单模式后面保留不透明颜色的背景。

【问题讨论】:

  • 你在 jsfiddle 中有吗?测试?

标签: javascript jquery css twitter-bootstrap twitter-bootstrap-3


【解决方案1】:

您可以简单地显示引导模式,而无需任何其他配置,例如

 $('#s-auth-login').modal('show');

这应该默认处理所有事情。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-06-06
    • 2016-09-04
    • 2017-01-28
    • 2015-08-15
    • 2014-03-30
    • 2012-11-02
    • 1970-01-01
    • 2022-01-20
    相关资源
    最近更新 更多