如何在popup插件中打开弹出窗口中的弹出窗口
问题描述:
任何人都可以告诉我如何使用magnific-popup jquery插件(使用ajax)在弹出窗口中打开弹出窗口。
can anybody tell me how to open popup within popup using magnific-popup jquery plugin (using ajax).
$('.ajax-popup-link').magnificPopup({
type: 'ajax'
});
<a href="path-to-file.html" class="ajax-popup-link"> Link 1 </a>
onpath-to-file.html
<a href="path-to-other-file.html" class="ajax-popup-link"> next popup </a>
谢谢
答
你不能同时打开两个窗口。但是第二次调用弹出窗口的内容时会被替换,例如 - http://codepen.io/dimsemenov/pen/hwIng
You can't have two windows open at once. But the content of popup is replaced when is called second time, here is example - http://codepen.io/dimsemenov/pen/hwIng