【发布时间】:2015-09-01 15:47:46
【问题描述】:
我有一个工作人员页面,该页面由每个成员的照片和姓名构成,并包含在一个 div 中。当点击员工照片时,它会打开一个灯箱并显示他们的照片和简历。我将每张照片的“rel”设置为“fancybox-gallery”。
当您打开页面上的任何照片灯箱时,您会看到“下一步”箭头链接。单击它将带您到下一个工作人员的灯箱,其中有“下一个”和“上一个”箭头链接。单击这些链接中的任何一个都会导致这些链接和“关闭”链接消失并且灯箱不会前进。
我不知道为什么会发生这种情况。这是我的一个员工 div 的示例。
<div class="staff-member even ">
<div class="staff-summary">
<div class="staff-thumb">
<a id="inline" class="fancybox-inline" rel="fancybox-gallery" href="#lacy-arant">
<img class="staff-member-photo" src="http://midtownpilates.com/wordpress/wp-content/uploads/2015/08/MidtownPilates-Lacy.jpg">
</a>
</div>
<div class="staff-member-info-wrap">
<h3>
<a id="inline" class="fancybox-inline" href="#lacy-arant">Lacy Arant</a>
</h3>
<p class="staff-position">Owner + Instructor</p>
</div>
</div>
<div style="display:none">
<div id="lacy-arant" class="staff-full" style="width:760px;max-width:100%">
<img class="staff-member-photo" src="http://midtownpilates.com/wordpress/wp-content/uploads/2015/08/MidtownPilates-Lacy.jpg">
<h1>Lacy Arant</h1>
<p class="staff-position">Owner + Instructor</p>
<a class="staff-member-email" title="Email Lacy Arant" href="mailto:"></a>
Lacy is the reason we have Midtown Pilates today! As a graduate of Mississippi State University, it was Lacy’s dream to bring a new, fun, functional fitness resource to the Starkville community. Lacy received her training from Pilates Academy International in NYC, and holds certifications in mat, barre, reformer, cadillac, chair, barrels, cardiolates, and pre- and post-natal therapy. She now trains all of our instructors right here in Starkville! Lacy has a passion for health and fitness, as well as for the people of Starkville which is apparent in her personal teaching style. You’ll rarely see Lacy without an MP Glow spray tan and a dark magenta lipstick on her lips! Lacy recently got married to Stephen in November 2014, and just adopted the second of their two puppy children.
</div>
</div>
</div>
谁能给我任何关于为什么这个功能会以这种方式工作的建议?这是一个 Wordpress 网站,我使用 Easy Fancybox 插件和 Simple Staff List 插件来创建此页面。
谢谢你, 基思
【问题讨论】: