<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width= device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<link rel="stylesheet" type="text/css" href="bootstrap.min.css" />
<script type="text/javascript" src="jquery-1.11.1.min.js"> </script>
<script type="text/javascript" src="bootstrap.min.js"></script>
</head>
<body>
查看演示案例
<!-- Modal -->
<p id="myModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden=" wahr">
<p class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="myModalLabel">Modal header</h3>
</p>
<p class="modal-body">
<p>One fine body…</p>
</p>
<p class="modal-footer">
<button class="btn" data-dismiss="modal" aria-hidden="true">关闭</button>
<button class="btn btn-primary">Save changes</button>
</p>
</p>
</body>
</html>
使用bootstrap的对话框 弹不出来的原因?
id="myModal"这个p为啥有个hide的class?