是否有可能收藏夹很多图片,但只显示一个图像来激活它们? [英] Is it possible to lightbox many images but only show one image to activate them?

查看:156
本文介绍了是否有可能收藏夹很多图片,但只显示一个图像来激活它们?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用灯箱来显示照片。所以,如果我有两个类别的照片,工作和度假,我会做...

I'm using Lightbox to display photos. So If I have two categories of photos, "work" and "vacation", I would do...

<a href="images/image-1.jpg" rel="lightbox[work]">image #1</a>
<a href="images/image-2.jpg" rel="lightbox[work]">image #2</a>
<a href="images/image-3.jpg" rel="lightbox[work]">image #3</a>

<a href="images/image-4.jpg" rel="lightbox[vacation]">image #4</a>
<a href="images/image-5.jpg" rel="lightbox[vacation]">image #5</a>
<a href="images/image-6.jpg" rel="lightbox[vacation]">image #6</a>

这显示6幅图像,当我点击其中一个,它会启动灯箱。

This displays 6 images, and when I click one of them, it starts the Lightbox.

不过,我希望能够在最初只显示两个图像(一个用于'工作',一个是'度假'),但被点击其中的一个时,它像第一个例子,例如:通过灯箱显示该类别的所有照片。

However, I'd like to be able to display only two images initially (one for 'work', one for 'vacation'), but when one of them is clicked, it behaves like the first example, e.g. display all photos in that category through Lightbox.

这可能吗?如果是这样,怎么样?

Is this possible? If so, how?

任何帮助是非常AP preciated! :)

Any help is very much appreciated! :)

感谢

推荐答案

如果你根本就没有放任何东西在锚的节点值不露面,虽然你可能希望确保没有在-情况下,这些空锚之间的任何空白的空格显示出来。

If you simply don't put anything in the node value of the anchor they don't show up, though you may wish to make sure there isn't any whitespace between these empty anchors in-case the whitespace shows up.

<a href="images/image-1.jpg" rel="lightbox[work]">image #1</a>
<a href="images/image-2.jpg" rel="lightbox[work]"></a>
<a href="images/image-3.jpg" rel="lightbox[work]"></a>
<a href="images/image-4.jpg" rel="lightbox[vacation]">image #2</a>
<a href="images/image-5.jpg" rel="lightbox[vacation]"></a>
<a href="images/image-6.jpg" rel="lightbox[vacation]"></a>

这篇关于是否有可能收藏夹很多图片,但只显示一个图像来激活它们?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆