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

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


蛊毒传说
浏览 710回答 1
1回答

翻过高山走不出你

你需要设置模态窗口的选项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')
打开App,查看更多内容
随时随地看视频慕课网APP