Jquery 引导模式淡入,但容器仍为空
我想包括一个简单的引导模式。代码很小,但似乎有问题 当我单击“Launch demo”按钮时,模式淡入,但是应该包含“.modal页眉”、“modal正文”和“.modal页脚”的容器是空的Jquery 引导模式淡入,但容器仍为空,jquery,html,twitter-bootstrap,modal-dialog,Jquery,Html,Twitter Bootstrap,Modal Dialog,我想包括一个简单的引导模式。代码很小,但似乎有问题 当我单击“Launch demo”按钮时,模式淡入,但是应该包含“.modal页眉”、“modal正文”和“.modal页脚”的容器是空的 <!DOCTYPE html> <html lang="en"> <head> <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/b
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
</head>
<body>
<div class="container">
<h2>Example of creating Modals with Twitter Bootstrap</h2>
<div id="example" class="modal hide fade in" style="display: none; ">
<div class="modal-header">
<a class="close" data-dismiss="modal">×</a>
<h3>This is a Modal Heading</h3>
</div>
<div class="modal-body">
<h4>Text in a modal</h4>
<p>You can add some text here.</p>
</div>
<div class="modal-footer">
<a href="#" class="btn btn-success">Call to action</a>
<a href="#" class="btn" data-dismiss="modal">Close</a>
</div>
</div>
<p><a data-toggle="modal" href="#example" class="btn btn-primary btn-large">Launch demo modal</a></p>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
</body>
</html>
使用Twitter引导创建模态的示例
您对模式框的标记不正确。
基本上改成这个
使用Twitter引导创建模态的示例