Owl Carousel 2 pagination dots were not diplayed

ε祈祈猫儿з 提交于 2019-12-11 11:51:18

问题


I am experiencing issue. The navigation components owl-nav and owl-dots are no longer wrapped with owl-controls.

<div class="owl-nav disabled">
  <div class="owl-prev">prev</div>
  <div class="owl-next">next</div>
</div>
<div class="owl-dots disabled">
  <div class="owl-dot active"><span></span></div>
  <div class="owl-dot"><span></span></div>
</div>

Demos show:

<div class="owl-controls">
  <div class="owl-nav disabled">
    <div class="owl-prev">prev</div>
    <div class="owl-next">next</div>
  </div>
  <div class="owl-dots disabled">
    <div class="owl-dot active"><span></span></div>
    <div class="owl-dot"><span></span></div>
  </div>
</div>

This is breaking the default css selections within owl-theme.

Can any one help me to solve this issue? Thanks in advance.


回答1:


Had the same problem, used some CSS-Styling my own:

 .owl-dots {
    text-align: center;
    position: fixed;
    bottom: 5px;
    width: 100%;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    -ms-backface-visibility: hidden;
    backface-visibility: hidden;
}

.owl-dot {
    border-radius: 50px;
    height: 10px;
    width: 10px;
    display: inline-block;
    background: rgba(127,127,127, 0.5);
    margin-left: 5px;
    margin-right: 5px;
}

.owl-dot.active {
    background: rgba(127,127,127, 1);
}

If you don't want to overlaps the dots just use:

.owl-dots {
    text-align: center;       
}



回答2:


I had same issue, Add more slides and dots will appear.



来源:https://stackoverflow.com/questions/37340868/owl-carousel-2-pagination-dots-were-not-diplayed

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