Fancybox 2 visible navigation arrows

怎甘沉沦 提交于 2019-12-30 05:38:25

问题


Is it possible with Fancybox 2.0 to always keep the image gallery navigation arrows visible? Rather than just visible on hover.


回答1:


For fancybox v2.x you may use these CSS inline declarations (after you have linked to the jquery.fancybox.css file):

<style type="text/css">
 .fancybox-next span {
  left: auto;
  right: 20px;
 }
 .fancybox-prev span {
  left: 20px;
 }
</style>

UPDATE (July 12, 2012) : Since Fancybox v2.0.6+ just need to add this css declaration instead

.fancybox-nav span {
 visibility: visible;
}



回答2:


#fancybox-left-ico {
    left: 10px !important;
}
#fancybox-right-ico {
    left: auto !important;
    right: 10px !important;
}


来源:https://stackoverflow.com/questions/8670956/fancybox-2-visible-navigation-arrows

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!