【问题标题】:Bootstrap carousel-indicators (28 indicators) on 2 lines2 行上的引导轮播指示器(28 个指示器)
【发布时间】:2017-08-10 02:55:47
【问题描述】:

我有一个带有 28 张图片的 Bootstrap 4 轮播。中小型设备上的指标,指标不破线(某些指标在某处丢失)。它不会换行。

我怎样才能做到这一点?

.carousel-indicators {
    position: absolute;
    right: 0;
    bottom: 10px;
    left: 0;
    z-index: 15;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding-left: 0;
    margin-right: 15%;
    margin-left: 15%;
    list-style: none;
    border-radius: 0px !important;
}

在小型设备上,只有很少的指示器可见。

我做错了什么?

非常感谢。

【问题讨论】:

    标签: css carousel bootstrap-4


    【解决方案1】:

    已解决:

    @media screen and (max-width: 554px) {
                .carousel-indicators {
                    display: table !important;
                    line-height: 15px !important;
                    margin-left: 18% !important;
                }
            }
    @media screen and (min-width: 555px) and (max-width: 767px) {
                .carousel-indicators {
                    display: table !important;
                    line-height: 15px !important;
                    margin-left: 18% !important;
    
                }
            }
    

    【讨论】:

      猜你喜欢
      • 2023-03-22
      • 1970-01-01
      • 2016-12-03
      • 1970-01-01
      • 1970-01-01
      • 2018-12-25
      • 2015-09-28
      • 2019-05-19
      • 1970-01-01
      相关资源
      最近更新 更多