步骤 1: 将 JQuery,jquery.leanModal.min.js 添加到您的页面:
<script src="Javascript/jquery-1.4.1.min.js" type="text/javascript"></script>
<script src="Javascript/jquery.leanModal.min.js" type="text/javascript"></script>
#lean_overlay {
position: fixed;
z-index:100;
top: 0px;
left: 0px;
height:100%;
width:100%;
background: #000;
display: none;
}
#show {display:none;}
步骤 4: 设置触发器
<a href="#show" id="modaltrigger"> 点击弹出窗口 </a>
<div id="show" >弹出窗口区域</div>
$("#modaltrigger").leanModal({ top : 200, overlay : 0.4, closeButton: ".modal_close" });