Fancybox 2 visible navigation arrows

后端 未结 2 1821
慢半拍i
慢半拍i 2021-01-03 21:55

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

相关标签:
2条回答
  • 2021-01-03 22:12
    #fancybox-left-ico {
        left: 10px !important;
    }
    #fancybox-right-ico {
        left: auto !important;
        right: 10px !important;
    }
    
    0 讨论(0)
  • 2021-01-03 22:20

    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;
    }
    
    0 讨论(0)
提交回复
热议问题