如何使用fancybox对多个图像进行分组而没有任何重复?我试过使用 rel="group" 虽然这要么显示最近图像的列表。
我有以下 HTML:
<ul>
<li>
<a rel="group1" class="fancy" title="Custom title" href="http://farm3.static.flickr.com/2641/4163443812_df0b200930.jpg"> <img alt="" src="http://farm3.static.flickr.com/2641/4163443812_df0b200930_m.jpg"> </a>
<h2><a rel="group1" class="fancy" title="Custom title" href="http://farm3.static.flickr.com/2641/4163443812_df0b200930.jpg">Test title about image</a></h2>
</li>
<li>
<a rel="group2" class="fancy" title="Custom title" href="http://farm3.static.flickr.com/2641/4163443812_df0b200930.jpg">
<img alt="" src="http://farm3.static.flickr.com/2641/4163443812_df0b200930_m.jpg">
</a>
<h2><a rel="group2" class="fancy" title="Custom title" href="http://farm3.static.flickr.com/2641/4163443812_df0b200930.jpg">Test title about image</a></h2>
</li>
<li>
<a rel="group3" class="fancy" title="Custom title" href="http://farm3.static.flickr.com/2641/4163443812_df0b200930.jpg">
<img alt="" src="http://farm3.static.flickr.com/2641/4163443812_df0b200930_m.jpg">
</a>
<h2><a rel="group3" class="fancy" title="Custom title" href="http://farm3.static.flickr.com/2641/4163443812_df0b200930.jpg">Test title about image</a></h2>
</li>
<li>
<a rel="group4" class="fancy" title="Custom title" href="http://farm3.static.flickr.com/2641/4163443812_df0b200930.jpg">
<img alt="" src="http://farm3.static.flickr.com/2641/4163443812_df0b200930_m.jpg">
</a>
<h2><a rel="group4" class="fancy" title="Custom title" href="http://farm3.static.flickr.com/2641/4163443812_df0b200930.jpg">Test title about image</a></h2>
</li>
</ul>