Home > Web Front-end > JS Tutorial > body text

Solving the problem of blank message in bootstrap modal box in JavaScript

黄舟
Release: 2017-07-24 13:34:34
Original
1464 people have browsed it

1. Add

aria-hidden='true' data-backdrop='static'
Copy after login

to the outermost div of the modal box. 2. Initialize the page displayed in the modal box.

 $('#myModal').modal({backdrop:'static', keyboard: false});
Copy after login

Among them, backgrounddrop: 'static' refers to Click on the background blank space to be closed

Keyboard: false; refers to the keyboard ESC incident without closing

The above is the detailed content of Solving the problem of blank message in bootstrap modal box in JavaScript. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template