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键盘不关闭.
网友评论