大佬教程收集整理的这篇文章主要介绍了jquery – 如何添加转义键功能来关闭灯箱?,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
<script type="text/javascript"> $(document).ready(function(){ $(".btnAction").click(function(){ var objPopup = $($(this).attr("rel")); var mask = $("<div/>",{ id : "mask",style: "BACkground:#000; display:block;top:0;left:0;position:absolute;opacity:0.8;filter: alpha(opacity=80);width:100%;height:100%;z-index:9998;",click: function(){ $(objPopup).hide(); $(this).remove(); } }); $(".PopupWrap").before(mask); objPopup.show(); }); $(".CloseIcon").click(function(){ $(this).parent().hide(); $("#mask").remove(); }); }); </script>
@R_674_10850@ESC键,以便在点击时,灯箱也会关闭?
非常感谢.
以上是大佬教程为你收集整理的jquery – 如何添加转义键功能来关闭灯箱?全部内容,希望文章能够帮你解决jquery – 如何添加转义键功能来关闭灯箱?所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。