Home  >  Article  >  Web Front-end  >  BootStrap modal box disables clicking on the blank space to close it

BootStrap modal box disables clicking on the blank space to close it

WBOY
WBOYOriginal
2016-10-22 00:00:161063browse

The modal box is an information editing window, which involves a lot of content. It took me a long time to fill it in. If I accidentally click on the blank space...

<span style="font-size: 14px">$('#myModal').modal({backdrop: 'static', keyboard: <span style="color: #0000ff">false</span></span><span style="color: #000000"><span style="font-size: 14px">});</span><br></span>
<span style="font-size: 16px">backdrop:static //空白处不关闭.

keyboard:false //esc键盘不关闭.</span>

The above code is used to open the modal box

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:LabelNext article:Label