【问题标题】:Slick Carousel Dots is showing 'number/button'Slick Carousel Dots 显示“数字/按钮”
【发布时间】:2020-02-17 07:59:55
【问题描述】:

.slick-dots {
  position: absolute;
  height: 50px;
  bottom: 0px;
  width: 100%;
  left: 0px;
  padding: 0px;
  margin: 0px;
  list-style-type: none;
  text-align: center;
  font-size: 10;
}

.slick-dots li {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 20px;
  margin: 0 5px;
  padding: 0;
  cursor: pointer;
}

.slick-dots li a {
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: 120px;
  height: 75px;
  display: block;
  visibility: hidden;
  border: 4px solid rgba(0, 0, 0, .50);
  margin-left: -60px;
  margin-bottom: 15px;
  -webkit-transition: visibility 0.5s linear 0.5s;
  transition: visibility 0.5s linear 0.5s;
  -webkit-animation: fadeOut 0.5s both;
  animation: fadeOut 0.5s both;
}
<div class="row">

  <div class="col-12 col-md-12 banner-section">
    <div class="slikslider3" style="clear: both">

      <div>
        <picture>
          <source media="(max-width: 900px)" srcset="https://upload.wikimedia.org/wikipedia/commons/thumb/7/77/Google_Images_2015_logo.svg/1200px-Google_Images_2015_logo.svg.png">
          <img src="https://content.fortune.com/wp-content/uploads/2017/01/google.jpeg" alt="banner" style="z-index:1" class="img-fluid">
        </picture>

      </div>


      <!-- 1st end -->
      <div>
        <picture>
          <source media="(max-width: 900px)" srcset="https://upload.wikimedia.org/wikipedia/commons/thumb/7/77/Google_Images_2015_logo.svg/1200px-Google_Images_2015_logo.svg.png">
          <img src="https://content.fortune.com/wp-content/uploads/2017/01/google.jpeg" alt="banner" style="z-index:1" class="img-fluid">
        </picture>
      </div>
    </div>
  </div>
</div>

但不知何故,点显示的是数字而不是点,知道怎么做吗?搜索所有方法/解决方案,但“数字”仍显示

我附上了我的HTML 代码,不知何故显示的是数字而不是点。

【问题讨论】:

  • 请同时分享 HTML。
  • JavaScript 在哪里?
  • 如果您在浏览器中检查页面,(右键单击 -> 检查)。您应该能够分辨出数字来自哪个元素。

标签: html css slick.js


【解决方案1】:

希望对您有所帮助。

.slick-dots li a.dot {
    font-size: 0;
    width: 20px;
    height: 20px;
    border-radius: 100%;
    border: 1px solid #ddd;
}
.slick-active a.dot {
    background: red;
}

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-11-18
    • 1970-01-01
    • 1970-01-01
    • 2019-08-02
    相关资源
    最近更新 更多