我正在为我正在开发的网站使用jQuery fancyBox的多个实例。它位于测试网址; http://youwontbelievewhathappened.com/Test/test.htmlFancyBox不触发 -
我设置站点内的大多数看中箱这种类型的标记和拨打:
首先加价:
<a href="#blogpostBox" title="Blog Post">Blog Post</a>
<br /><br />
<a href="#announcementBox" title="Announcement Box">Site Announcement</a>
呼叫正文:
<div class="fancybox">
<div id="blogpostBox" style="width:400px;height:100px;overflow:auto;">
[This is the blog post]
</div>
</div>
<div class="fancybox">
<div id="announcementBox" style="width:400px;height:100px;overflow:auto;">
[This is the announcement]
</div>
</div>
但是对于最后两个链接,我试图触发fanc y box for;这不会触发它。它只是在网站网址的末尾加载'#contentdiv
'。它不可能是我将它移动到外面的位置,并且尝试了它,仍然没有这样的运气。有什么建议么?
两个麻烦的环节都位于扩张右侧栏,标有“点击我”
这是关于它!尽管如此,我无法称之为“#rightsidebar a”,因为这会触发带有“点击我”和幻灯片功能的花式框。所以我试着给每个链接打电话并仍然有些麻烦。 –
啊 - 我只需要添加id =“”明白了。多谢,伙计。 –