我使用引导模式插件。但模态对话框不显示在中心。 为什么?我的错?Bootstrap 2的模态插件不会显示在中心
http://dl.dropbox.com/u/573972/stackoverflow/bootstrap/modal.html
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<title>test</title>
<meta name="description" content="">
<meta name="author" content="">
<!-- Mobile Specific-->
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- CSS-->
<link rel="stylesheet" href="bootstrap.min.css">
<script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/1.7/jquery.min.js'></script>
</head>
<body>
<div id="login" class="modal">
<div class="modal-header">
<h3>Login to Room fuga</h3>
</div>
<div class="modal-body">
hogehoge
</div>
</div>
<script src="bootstrap.min.js">
</script>
<script>
$('#login').modal();
</script>
</body>
</html>
此解决方案不起作用:http://jsfiddle.net/sonic1980/szFtE/ – Peter 2012-12-30 16:19:16
谢谢,保存当天 – 2013-03-29 06:35:42
我删除了减去之前($ this)添加积极的顶部边距,而不是负边距,并且在对话框中垂直对齐我的对话框3.直接使用解决方案似乎将我的对话框移动到可见区域之外。 – angularsen 2013-12-09 17:45:15