为了账号安全,请及时绑定邮箱和手机立即绑定

Bootstrap 的模态窗口为什么点空白处就关闭了呢

Bootstrap 的模态窗口为什么点空白处就关闭了呢

蛊毒传说 2019-02-18 12:12:40
Bootstrap 的模态窗口为什么点空白处就关闭了呢
查看完整描述

1 回答

?
翻过高山走不出你

TA贡献1875条经验 获得超3个赞

你需要设置模态窗口的选项options
$('#QrCode_Modal').modal({
show:true,
backdrop:'static'
});

方法
下面是一些可与 modal() 一起使用的有用的方法。

方法
描述
实例

Options: .modal(options) 把内容作为模态框激活。接受一个可选的选项对象。 $('#identifier').modal({
keyboard: false
})

Toggle: .modal('toggle') 手动切换模态框。 $('#identifier').modal('toggle')

Show: .modal('show') 手动打开模态框。 $('#identifier').modal('show')

Hide: .modal('hide') 手动隐藏模态框。 $('#identifier').modal('hide')

查看完整回答
反对 回复 2019-02-26
  • 1 回答
  • 0 关注
  • 708 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信