柳意梧情

心在哪里收获就在哪里
加载
首页 » 建站教程 » jQuery带步骤流程弹出层代码

jQuery带步骤流程弹出层代码

下面是HTML代码部分,CSS及JS需自行下载
<!DOCTYPE html>
<html>
<head>
<title>jQuery带步骤流程弹出层代码</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1, minimum-scale=1.0, maximum-scale=1, user-scalable=no" />

<link href="https://blog.liuyiwuqing.cn/yanshi/116/bootstrap.css" rel="stylesheet" type="text/css" />
<link href="https://blog.liuyiwuqing.cn/yanshi/116/flow.css" rel="stylesheet" type="text/css"  />

<style>
* {
	margin: 0;
	padding: 0;
	font-size: 12px;
}
html, body {
	height: 100%;
	width: 100%;
}
#alert {
	z-index: 2;
	border: 1px solid rgba(0,0,0,.2);
	width: 598px;
	height: auto;
	border-radius: 6px;
	box-shadow: 0 5px 15px rgba(0,0,0,.5);
	background: #fff;
	z-index: 1000;
	position: absolute;
	left: 50%;
	top: 15%;
	margin-left: -299px;
	display: none;
}
.model-head {
	padding: 15px;
	color: #73879C;
	border-bottom: 1px solid #e5e5e5;
}
.close {
	padding: 0;
	cursor: pointer;
	background: 0 0;
	border: 0;
	float: right;
	font-size: 14px !important;
	font-weight: 700;
	text-shadow: 0 1px 0 #fff;
	opacity: 0.4;
	margin-top: 5px;
}
#close:hover {
	cursor: pointer;
	color: #000;
}
#mask {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	background: #000;
	opacity: 0.3;
	display: none;
	z-index: 1;
}
.model-content {
	position: relative;
	padding: 15px;
}
.model-foot {
	padding: 15px;
	text-align: right;
}
</style>

</head>
<body>

<div id="content" style="text-align:center;margin:40px auto;"> <a style="font-size:36px;" href="#">点击遮罩层</a> </div>

<div id="alert" class="">
	<div class="model-head">
		<span class="close">&times;</span>
		<h4 class="modal-title">model弹出层</h4>
	</div>
	<div class="model-content">
		<div class="main">
			<div class="row">
				<div class="col-md-12">
					<div class="flow">
						<div class="flowListBox"> </div>
					</div>
				</div>
				<div class="col-md-12" id="flowDiv">
					<ol id="iList">
						<div id="contA">柳意梧情<br>柳意梧情博客<br>柳意梧情博客<br>柳意梧情博客<br>柳意梧情博客<br>柳意梧情博客<br>柳意梧情博客<br>柳意梧情博客<br>柳意梧情博客</div>
						<div class="contentList" id="contB">bb<br>blog.liuyiwuqing.cn<br>blog.liuyiwuqing.cn<br>blog.liuyiwuqing.cn<br>blog.liuyiwuqing.cn<br>blog.liuyiwuqing.cn<br>blog.liuyiwuqing.cn<br>blog.liuyiwuqing.cn<br>blog.liuyiwuqing.cn</div>
						<div class="contentList" id="contC">cc</div>
						<div class="contentList" id="contD">dd</div>
					</ol> 
				</div>
			</div>
		</div>
	</div>

	<div class="foot-btn">
		<button type="button" class="btn btn-primary" id="btnBack">上一步</button>
		<button type="button" class="btn btn-default"  style="float:right; display:none" id="btnok">完成</button>
		<button type="button" class="btn btn-success"  style="float:right; margin-right:10px;" id="btnNext">下一步</button>
	</div>
</div>

<div id="mask"></div>

<!--content/--> 

<script type="text/javascript" src="https://blog.liuyiwuqing.cn/yanshi/116/jquery.min.js"></script> 
<script type="text/javascript" src="https://blog.liuyiwuqing.cn/yanshi/116/flow.js"></script> 
<script type="text/javascript"> 
var myAlert = document.getElementById("alert"); 
var myMask=document.getElementById('mask');  

$("#content a").click(function(){  
	myMask.style.display="block"; 
	myAlert.style.display = "block"; 
	document.body.style.overflow = "hidden"; 
})
$(".close").click(function(){
	myAlert.style.display = "none"; 
	myMask.style.display = "none"; 
}) 
</script>

<div style="text-align:center;margin:50px 0; font:normal 14px/24px 'MicroSoft YaHei';">
<p>适用浏览器:IE8、360、FireFox、Chrome、Safari、Opera、傲游、搜狗、世界之窗.</p>
<p>来源:<a href="https://blog.liuyiwuqing.cn" target="_blank">柳意梧情博客</a></p>
</div>
</body>
</html>


收录详情:百度已收录
版权声明:本文内容源自互联网,由(柳意梧情)整编。
文章标题:jQuery带步骤流程弹出层代码
本文地址:https://blog.liuyiwuqing.cn/Site/116.html
本文最后更新于2019-6-1,已超过半年没有更新,如果文章内容或图片资源失效,请留言反馈,我们会及时处理,谢谢!
分享到:
版权所有,转载注意明处:柳意梧情博客 » jQuery带步骤流程弹出层代码

WRITTEN BY:柳意梧情

avatar

评论

游客

切换注册

登录

您也可以使用第三方帐号快捷登录

切换登录

注册

2982 sitemap