这是一款基于Bootstrap点击弹出模态窗口样式,警告弹窗提示代码。
使用方法
1、head引入css文件
<!--框架样式--> <link href="css/bootstrap.min.css" rel="stylesheet"> <!--主要样式--> <link href="css/style.css" rel="stylesheet">2、body引入部分
<div class="modal-box"> <button type="button" class="btn show-modal" data-toggle="modal" data-target="#myModal">点击弹出</button> <!-- Modal --> <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"> <div class="modal-dialog" role="document"> <div class="modal-content"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> <div class="modal-body"> <div class="icon"> ! </div> <h3 class="title">警告!</h3> <p class="description">无权限访问</p> <button class="subscribe">查看原因</button> </div> </div> </div> </div> </div> <script src="js/jquery-1.11.0.min.js" type="text/javascript"></script> <script src="js/bootstrap.min.js"></script>