1
插件使用:mb.extruder和magnific-popup如何從mb.extrude jquery插件中正確地激活Magnific-popup?
當使用代碼我的網頁上使用了內嵌的內容莊重,彈出如:
<a href="#test-inline" class="popup-inline" >Inline Content</a>
它可以完美運行。但是,如果我使用上面的代碼作爲mb.extruder鏈接,那麼它只會將鏈接視爲普通url,並使用/#test-inline加載頁面。
這裏是我的jQuery函數:
$(document).ready(function(){
$("#navSliderTop").buildMbExtruder({
positionFixed:false,
width:350,
extruderOpacity:1,
autoCloseTime:4000,
closeOnExternalClick:false,
// hidePanelsOnClose:false,
onExtOpen:function(){},
onExtContentLoad:function(){},
onExtClose:function(){}
});
// Pop-up boxes
$('.popup-inline').magnificPopup({
type:'inline',
midClick: true,
preloader: true
});
});