Jquery plugins 将jQuery quicksand与fancybox一起使用时出现的问题,再次讨论

Jquery plugins 将jQuery quicksand与fancybox一起使用时出现的问题,再次讨论,jquery-plugins,fancybox,Jquery Plugins,Fancybox,我不知道我所做的是否正确,但如果不正确,请告诉我。关于上一篇文章,我有一个问题: fancybox工作得很好,但我有个问题。当我使用脚本时: $("a.grouped_elements").fancybox({ 'titlePosition' : 'inside', 'titleFormat' : function(title, currentArray, currentIndex, currentOpts) { return '<span id="fancy

我不知道我所做的是否正确,但如果不正确,请告诉我。关于上一篇文章,我有一个问题:

fancybox工作得很好,但我有个问题。当我使用脚本时:

$("a.grouped_elements").fancybox({
'titlePosition'     : 'inside',
'titleFormat'       : function(title, currentArray, currentIndex, currentOpts) {
     return '<span id="fancybox-title-inside">Image ' + (currentIndex + 1) + ' / ' +
              currentArray.length + (title.length ? ' &nbsp; ' + title : '') + 
             '</span>';
}
$(“a.U元素”).fancybox({
“标题位置”:“内部”,
“标题格式”:函数(标题、currentArray、currentIndex、currentOpts){
返回'Image'+(currentIndex+1)+'/'+
currentArray.length+(title.length?“”+title:“”)+
'';
}
它是一个沙盒插件,它正在克隆元素以便于排列,它克隆了第一组元素5次,其余3次,因此我的第一个图库中有7个图像乘以5个沙盒克隆=图库中的35个图像第二个图库中有4个乘以3个克隆=图库中的12个图像,依此类推

我如何解决这个问题

以下是该网站的链接:



再一次,像你这样的人arttronics都是很好的人。它正在发挥作用。

制作一个漂亮的HTML5组合教程网站并没有让你发布解决方案,但我认为这是一个好地方,因为其他人都有这个问题

首先,你的网页头部看起来应该是纠正基本错误的

第二,你的身体部位有很多li标签,但没有关闭它们

第三个,下面是一个解决方案,可以在画廊模式下使用Fancybox和其他jQuery lightbox克隆脚本,而这些脚本不缓存链接:

// This jQuery shown is part of your customized .js file for use with quicksand.js
$('#stage').quicksand(link.data('list').find('li'), function() {

   //
   //  Place your usual jQuery or Javascript GALLERY markup here with CLONING issue (not for cached gallery links).
   //

   // This next jQuery line should be placed prior to the closing of your function.
   // All hidden items Quicksand has set on the webpage will be removed which in turns removes the CLONED jQuery elements.
   // When the Quicksand Menu Filter Button is used again, your filtered items will remain correct in gallery length.
   $('section#container').find('ul.hidden').remove();

});

该标题完全没有描述性,请更正。我们感谢您对一个好答案的喜悦,但请不要添加答案来表达这一点。它们将被删除(并损害您的帐户,因为您是如此新)。您可以通过50 rep对其他答案进行评论,如果您拥有该问题或答案,则可以立即进行评论。此外,如果某个答案对您有用,请向上投票并选择正确答案。