首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何将owl旋转木马滑块箭头底部移动到圆点

问如何将owl旋转木马滑块箭头底部移动到圆点
EN

Stack Overflow用户
提问于 2021-01-29 00:55:11
回答 2查看 237关注 0票数 0

如何将owl轮播箭头从

​

​

至

​

​

我需要看起来像这样:

​

​

EN

回答 2

Stack Overflow用户

发布于 2021-01-29 01:08:24

我想你可以通过位置来控制它们。

代码语言:javascript
复制
.owl-next,
.owl-prev {
      position: absolute;
      bottom: 15px;
}

.owl-next {
    right: 45%;
}
.owl-prev {
    left: 45%;
}
票数 1
EN

Stack Overflow用户

发布于 2021-01-29 01:17:57

你在找这样的东西吗?

demo

source

代码语言:javascript
复制
.carousel-wrap {
 width: 1000px;
 margin: auto;
 position: relative;
}
.owl-carousel .owl-nav{
 overflow: hidden;
 height: 0px;
}

.owl-theme .owl-dots .owl-dot.active span, 
.owl-theme .owl-dots .owl-dot:hover span {
  background: #2caae1;
 }


 .owl-carousel .item {
   text-align: center;
}
.owl-carousel .nav-btn{
  height: 47px;
  position: absolute;
  width: 26px;
  cursor: pointer;
  top: 100px !important;
 }

 .owl-carousel .owl-prev.disabled,
 .owl-carousel .owl-next.disabled{
  pointer-events: none;
  opacity: 0.2;
 }

  .owl-carousel .prev-slide{
   background: url(nav-icon.png) no-repeat scroll 0 0;
    left: -33px;
  }
  .owl-carousel .next-slide{
  background: url(nav-icon.png) no-repeat scroll -24px 0px;
  right: -33px;
 }
 .owl-carousel .prev-slide:hover{
   background-position: 0px -53px;
 }
 .owl-carousel .next-slide:hover{
 background-position: -24px -53px;
}

 span.img-text {
  text-decoration: none;
  outline: none;
  transition: all 0.4s ease;
 -webkit-transition: all 0.4s ease;
 -moz-transition: all 0.4s ease;
 -o-transition: all 0.4s ease;
 cursor: pointer;
 width: 100%;
 font-size: 23px;
 display: block;
 text-transform: capitalize;
}
 span.img-text:hover {
  color: #2caae1;
 }

$('.your-class').owlCarousel({
    dots: false,
    nav: true,
    navText: ["<i class='fa fa-long-arrow-left'></i>","<i class='fa fa- 
    long-arrow-right'></i>"],

});
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/65941688

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档