我不明白,当我点击弹出窗口的任何地方时,为什么Magnific Popup插件会关闭弹出窗口.角落里的X按钮设计已经完成了.任何人都知道如何修复它,只有当我点击X时它才会关闭?
代码如下:
打开
<script type="text/javascript"> $(document).ready(function() { $('.simple-ajax-popup-align-top').magnificPopup({ type: 'ajax',alignTop: true,overflowY: 'scroll' // as we know that popup content is tall we set scroll overflow by default to avoid jump }); $('.simple-ajax-popup').magnificPopup({ type: 'ajax' }); }); </script>