4

我正在使用Swipebox jQuery 灯箱。

在正常情况下,图像的标题和光标箭头在浏览图库时会从页面的顶部和底部滑出。

基本上,我希望图像标题和控制箭头保持原位(而不是滑出页面)。有谁知道如何做到这一点?

4

3 回答 3

8

它在初始设置中,只需像这样设置它:

hideBarsDelay : 3000, // 0 to always show caption and action bar

https://github.com/brutaldesign/swipebox#options

于 2014-07-14T11:14:52.153 回答
4

通过放置来解决这个问题

#swipebox-caption{top:0!important;}
#swipebox-action{bottom:0!important;}

在我的 CSS 中。

于 2013-11-12T16:41:36.877 回答
0

这对我有用

#swipebox-top-bar,#swipebox-bottom-bar{transform: none !important;}
#swipebox-top-bar{top: 0;}
#swipebox-bottom-bar{bottom:0;}
于 2019-11-08T13:39:23.780 回答