如果你想使用Zurb Foundation创建你自己的插件,你可以从下面的代码中获得一个想法。 http://codepen.io/shoaibik/pen/GZaOGV
$(function(){
$("#exampleModal2").foundation('open');
$('.nav').click(function(){
if($(this).hasClass('prev')){
if($(".reveal-overlay:visible").prev().find('.reveal').length){
$(".reveal-overlay:visible").prev().find('.reveal').foundation('open');
} else{
$(".reveal-overlay:last").find('.reveal').foundation('open');
}
}else{
if($(".reveal-overlay:visible").next().find('.reveal').length){
$(".reveal-overlay:visible").next().find('.reveal').foundation('open');
}else{
$(".reveal-overlay:first").find('.reveal').foundation('open');
}
}
});
});
如果你想使用插件,您可以用光滑滑块和定制,以您的需求。 http://kenwheeler.github.io/slick/
你在说什么缩略图?无法找到给定链接上的缩略图... –