【发布时间】:2021-10-19 07:03:08
【问题描述】:
here's the site。如果您将窗口大小调整为较小的尺寸。你会注意到有一个底部边距/填充由
引起.carousel-inner {
background-color: #03324c;
}
我可以删除它,但指示器将不可见,并且底部会有一个空白。我知道图像有不同的大小,我尝试调整大小,同样的问题。这两天我尝试了很多东西,没有任何效果。
.carousel-inner {
background-color: #03324c;
}
.carousel-inner img {
margin-left: auto;
margin-right: auto;
margin-top: auto;
opacity: 0.7;
width: 100vw;
height: auto;
max-height: 100vh;
bottom: 0;
}
.carousel-caption h3 {
color: #fff !important;
}
【问题讨论】:
-
您到底在寻找什么?您希望为指标显示边距吗?
-
@SamBattat 是的,我保留它,因为它使指标显示,这就是我需要它的全部
-
使所有图像的宽度和高度相同
标签: html css twitter-bootstrap twitter-bootstrap-3 carousel