最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - blueimp gallery set indicator on by default - Stack Overflow

programmeradmin3浏览0评论

I am using blueimp gallery / as a lightbox in my website. Is there an easy way to keep the indicator on by default? Right now, after you open a gallery in a lightbox you need to click on an image for it to show navigation buttons and indicator options.

I am using blueimp gallery http://blueimp.github.io/Gallery/ as a lightbox in my website. Is there an easy way to keep the indicator on by default? Right now, after you open a gallery in a lightbox you need to click on an image for it to show navigation buttons and indicator options.

Share Improve this question asked Jan 13, 2014 at 6:12 pewpewlaserspewpewlasers 3,2154 gold badges33 silver badges62 bronze badges
Add a comment  | 

2 Answers 2

Reset to default 24

Add blueimp-gallery-controls class to gallery container:

<div id="blueimp-gallery" class="blueimp-gallery blueimp-gallery-controls">
    <div class="slides"></div>
    <h3 class="title"></h3>
    <a class="prev">‹</a>
    <a class="next">›</a>
    <a class="close">×</a>
    <a class="play-pause"></a>
    <ol class="indicator"></ol>
</div>

Edit the blueimp-gallery.css. Set the elements you want shown to display:block instead of display:none.

发布评论

评论列表(0)

  1. 暂无评论