首页 > bootstrap

BootStrap模态框禁用空白处点击关闭ESC禁止关闭

模态框为信息编辑窗口,涉及好多内容,填了半天,若一不小心点了空白处就会消失,解决办法: $(‘#myModal’).modal({backdrop: ‘static’, keyboard: false}); backdrop:static时,空白处不关闭. keyboard:false时,esc键盘不关闭. 上述代码用以打开模态框   http://www.cnblogs.com/DayDreamEveryWhere/p/4550320.html