【发布时间】:2013-03-05 23:27:26
【问题描述】:
我正在使用 prettyPhoto (http://www.no-margin-for-errors.com/projects/prettyphoto-jquery-lightbox-clone/)
根据文档,它是由以下触发的:
$("a[rel^='prettyPhoto']").prettyPhoto();
但是,我只使用了这个(根据 W3C,rel 属性无效并且不需要):
$(".photo a").prettyPhoto();
但我需要将我的照片制作为画廊,根据使用此制作的文档:
<a href="images/1.jpg" rel="prettyPhoto[pp_gal]"><img src="images/1b.jpg" /></a>
(rel 标签在[]之间有画廊名称)
有什么方法可以定义没有 rel 标签的画廊?
【问题讨论】:
-
我回答了你的问题here。我希望可以在这里发布它作为评论。
标签: prettyphoto