bootstrap模态框使用

需要引入的相关内容点击下载


<html>
<%@ page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" %>
<head>
<title>BootStrap</title>

<link rel="stylesheet" href="bootstrap.min.css">
<script src="jquery.js"></script>
<script src="bootstrap.min.js"></script>
</head>
<body>       //红色的标注的两处id必须相同
<button class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal">通过此按钮</button>
<!-- Modal -->
<!-- 模态框(Modal) -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="removeModalLabel">
    <div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title">发布<small> </small></h4>
</div>
<div class="modal-body text-center">
您确定要发布吗?
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
<button type="button" class="btn btn-danger" id="reSetState">发布</button>
</div>
</div>
</div>
</div>
</body>

</html>
posted @ 2017-01-12 20:57  Timesyys  阅读(247)  评论(0编辑  收藏  举报