模态框中加入 data-backdrop=”static” 属性

<div class="modal fade examplemodal" tabindex="-1" aria-labelledby="mySmallModalLabel" 
aria-hidden="true" data-backdrop="static"></div>