男人哦男人。在使用了最简单的模态窗口脚本leanModal 之后,我仍然无法触发它。
精益模态: http ://leanmodal.finelysliced.com.au
我的网站:http ://wlvrtn.com/sites/nms-leanmodal/
帮助一个 jQuery 菜鸟?
头:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
<script type="text/javascript" src="_/js/jquery.leanModal.min.js"></script>
<script type="text/javascript">
$(function() {
$('a[rel*=leanModal]').leanModal({ top : 200, closeButton: ".modal_close" });
});
</script>
CSS:
#lean_overlay {
position: fixed;
z-index: 10000;
top: 0px;
left: 0px;
height:100%;
width:100%;
background: #000;
display: none;
}
#test {
width: 600px;
display:none;
background: #FFF;
}
HTML:
<a class="request-consultation" rel="leanModal" name="test" href="#test">
Request Complimentary Consultation
</a>
<div id="test">
<p>Lorem ipsum dolor sit amet.</p>
</div>