【发布时间】:2014-08-27 12:21:50
【问题描述】:
我正在使用magnific popup 显示image type 和inline type 项目的混合库。
HTML:
<a href="http://lorempixel.com/400/200/" class="magnific">Image Popup</a>
<a href="#test-popup" class="magnific mfp-inline">Show inline popup</a>
<!-- the inline content -->
<div id="test-popup" class="white-popup mfp-hide">
Inline content
</div>
JS:
$('.magnific').magnificPopup({
type: 'image',
gallery: {enabled: true}
});
完整的工作示例是here。
如您所见,图像类型项目自动获得一个“x of y”计数器,如下所示:
我怎样才能获得内联类型项目的这个计数器呢?
【问题讨论】:
标签: magnific-popup