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">×</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>
你配不上自己的野心 也辜负了所受的苦难