如何將多個圖像分組而不使用fancybox重複?我嘗試過使用rel =「group」,雖然這會顯示最近的圖像列表。Fancybox組圖像無重複
我有以下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>
你缺少fanybox JS ... – powtac
是啊jsfiddle運行速度真的很慢,並沒有上傳JS。我已經刪除了這個。漂亮毫無意義,因爲它只是一個基本的fancybox示例 –