부트스트랩 모달 다이얼로그 예제 ( Bootstrap Modal Dialog example )
Screen Shot
원문참조 : http://www.tutorialspoint.com/bootstrap/bootstrap_modal_plugin.htm
<!DOCTYPE html>
<html>
<head>
<title>Example of Twitter Bootstrap</title>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="css/bootstrap.min.css">
<!-- Optional theme -->
<link rel="stylesheet" href="css/bootstrap-theme.min.css">
<script src="jquery-2.1.1.min.js"></script>
<!-- Latest compiled and minified JavaScript -->
<style type="text/css">
body { text-align: center; }
#myModal { display:inline-table; text-align: center;
margin:auto; margin-top:200px;
}
#myModal, .modal-dialog, .modal-content, .modal-header, .modal-body, .modal-footer{
width:300px;
}
</style>
<script src="js/bootstrap.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
});
</script>
</head>
<body>
<h2>Modal Dialog Example</h2>
<!-- Button trigger modal -->
<button class="btn btn-primary btn-lg" data-toggle="modal"
data-target="#myModal">
Launch Modal Dialog
</button>
<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog"
aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close"
data-dismiss="modal" aria-hidden="true">
×
</button>
<h4 class="modal-title" id="myModalLabel">
모달 다이얼로그 제목
</h4>
</div>
<div class="modal-body">
모달 다이얼로그 메시지
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default"
data-dismiss="modal"> 닫 기
</button>
<button type="button" class="btn btn-primary">
메인 버튼
</button>
</div>
</div><!-- /.modal-content -->
</div>
</div><!-- /.modal -->
</body>
</html>