Boostrap modal外禁用空白处点击关闭
2017-07-27 本文已影响0人
AliceGirl
Boostrap Modal 点击空白处不Close
方案一:
<div class="modal fade" id="Create-modal" aria-labelledby="myModalLabel"ariahidden="true" data-backdrop="static"></div>
方案二:
js:
$('#Create-modal').modal({backdrop:'static', keyboard:false});
[注释:]
backdrop:static时,空白处不关闭.
keyboard:false时, esc键盘不关闭.