问题描述
我已经阅读并理解了另一篇文章,该文章展示了如何使引导轮播项目高度适应设备,但我想知道是否可以在中型设备和小型设备上为轮播项目设置高度。当我将高度设置为 350px 时;它在 md
和 sm
屏幕上维护。
<div id="info-carousel" class="carousel carousel-dark slide" data-bs-ride="carousel">
<div class="carousel-indicators">
<button type="button" data-bs-target="#info-carousel" data-bs-slide-to="0" class="active" aria-current="true" aria-label="Slide 1"></button>
<button type="button" data-bs-target="#info-carousel" data-bs-slide-to="1" aria-label="Slide 2"></button>
<button type="button" data-bs-target="#info-carousel" data-bs-slide-to="2" aria-label="Slide 3"></button>
<button type="button" data-bs-target="#info-carousel" data-bs-slide-to="3" aria-label="Slide 4"></button>
</div>
<div class="carousel-inner">
<div class="carousel-item active bg-warning" style="height:350px">
<div class="carousel-caption">
<h5>Welcome</h5>
<p>Tap on your assigned courses for course information</p>
</div>
</div>
<div class="carousel-item bg-warning" style="height:350px">
<div class="carousel-caption">
<h5>System Menu</h5>
<p>Tap on the menu bars <i class="fa fa-bars"></i> for menu items</p>
</div>
</div>
<div class="carousel-item bg-warning" style="height:350px">
<div class="carousel-caption">
<h5>Appraisals of Courses</h5>
<p>Tap on course tutors to begin your appraisals</p>
</div>
</div>
<div class="carousel-item bg-warning" style="height:350px">
<div class="carousel-caption">
<h5>Expand Contents</h5>
<p>Tap on the caret <i class="fa fa-chevron-down"></i> to see more contents</p>
</div>
</div>
</div>
</div>
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)