fancybox把标题放在上面并留在那里

Sir*_*umz 1 jquery fancybox

我正在使用Fancybox 2.0,我希望标题框显示在图像上方或图像顶部,而不是下方.

就在所有内容之上.

我尝试制作fancybox-inner样式position:absolute,但随后高度fancybox-wrap不会设置为绝对像素.

有人可以帮我实现吗?

小智 10

最好也是最简单的 - 使用助手:

helpers : {
            title : {
                type: 'inside',
                position : 'top'
            }
        }
Run Code Online (Sandbox Code Playgroud)


小智 6

为这些元素添加以下fancybox CSS ...

.fancybox-title{position: absolute;top: 0;} 

.fancybox-skin{position: relative;}
Run Code Online (Sandbox Code Playgroud)

这应该把标题放在首位.