Asp.net照片库与fancybox不显示下一个/ previos按钮 [英] Asp.net photo gallery with fancybox not showing next/previos button

查看:216
本文介绍了Asp.net照片库与fancybox不显示下一个/ previos按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在asp.net的照片库&我使用fancybox-1.3.4显示图像作为重叠

I am working on asp.net photo gallery & i am using fancybox-1.3.4 to show images as overlay

它工作正常我有两个问题。

It is working fine i have two issue with it.

一个:它不会显示下面屏幕截图中显示的下一个/预览

One: It doesn't show the next / previews as show in the screen shot image below

第二:在主厨房我使用自定义标题我添加span标签它出现在我点击照片,然后在主画廊页面上,当一个悬停在图像上显示标题,其中有span标签可见。它不会在IE中出现。
我必须把这个标题传递给大的覆盖图片。

Second: On the main galley i am using Custom Title for the Image i add span tags to it it comes up right when i click on the photo.but on the main gallery page when one hover over the image it show title which has span tags visible. It doesn't come up in the IE. I have to pass this title to the large overlay image. How can i hide it on the main page.

推荐答案


  1. 图库是从元素创建的共享相同的 rel 属性,如

<a class="fancybox" rel="gallery" ...>one</a>
<a class="fancybox" rel="gallery" ...>two</a>

(如果没有至少两个或更多具有相同 rel 属性的元素,则不会显示导航按钮)

etc. (navigation buttons won't appear if there are not at least two or more elements with the same rel attribute)

您可能希望从图片的 alt 属性中获取fancybox title c> img )标记,因此当悬停缩略图时,它不会显示为工具提示。然后添加选项(Fancybox v1.3.4)'titleFromAlt':true

You may prefer to get the fancybox title from the alt attribute of the image (img) tag so it won't be shown as tooltip when hover the thumbnail. Then add the option (Fancybox v1.3.4) 'titleFromAlt':true like

$(".fancybox").fancybox({
 // API options here etc
   'titleFromAlt':true 
});


检查此链接,以供v1中的fancybox title 参考.3.x

Check this link for reference about fancybox title in v1.3.x

这篇关于Asp.net照片库与fancybox不显示下一个/ previos按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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