【问题标题】:How to change navigation buttons in a bootstrap 4 carousel?如何更改引导程序 4 轮播中的导航按钮?
【发布时间】:2020-10-02 11:21:48
【问题描述】:

当我意识到您可以使用其他按钮进行轮播导航(当然是默认按钮之外的其他按钮)时,我正在为我的网站使用引导轮播。

<div id="carouselExampleControls" class="carousel slide" data-ride="carousel">
  <div class="carousel-inner">
    <div class="carousel-item active">
      <img class="d-block w-100" src="..." alt="First slide">
    </div>
    <div class="carousel-item">
      <img class="d-block w-100" src="..." alt="Second slide">
    </div>
    <div class="carousel-item">
      <img class="d-block w-100" src="..." alt="Third slide">
    </div>
  </div>
  <a class="carousel-control-prev" href="#carouselExampleControls" role="button" data-slide="prev">
    <span class="carousel-control-prev-icon" aria-hidden="true"></span>
    <span class="sr-only">Previous</span>
  </a>
  <a class="carousel-control-next" href="#carouselExampleControls" role="button" data-slide="next">
    <span class="carousel-control-next-icon" aria-hidden="true"></span>
    <span class="sr-only">Next</span>
  </a>
</div>

有谁知道如何更改此轮播中的导航按钮。提前致谢!!

【问题讨论】:

标签: html css twitter-bootstrap button carousel


【解决方案1】:

一个肮脏的技巧是覆盖carousel-control-prev-iconcarousel-control-next-icon 类。

看笔 - https://codepen.io/buzztnt/pen/WNrjvbM

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-10-24
    • 2021-11-04
    • 2018-08-17
    • 2017-05-06
    • 1970-01-01
    • 2018-09-30
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多