我正在使用 bootstrap 4 滑块创建网站页面,但图像没有响应,并且仅在 1980x1080 下看起来不错。如何使图像响应?
我的代码看起来像这样:
<div id="carouselExampleIndicators" class="carousel slide" data-ride="carousel" data-interval="7000">
<ol class="carousel-indicators">
<li data-target="#carouselExampleIndicators" data-slide-to="0" class="active"></li>
<li data-target="#carouselExampleIndicators" data-slide-to="1"></li>
<li data-target="#carouselExampleIndicators" data-slide-to="2"></li>
</ol>
<div class="carousel-inner" role="listbox">
<div class="carousel-item active img-fluid" style="background-image: url(img/slide11.jpg);">
<div class="carousel-caption text-center">
<h1><img class="hydrive_logo" src="img/Hydrive_logo.png" alt="Hydrive - logo"/></h1>
<a class="btn btn-outline-light btn-lg" href="#Bolid">Get Started</a>
</div>
</div>
<div class="carousel-item" style="background-image: url(img/HydriveTeam.jpg);"></div>
<div class="carousel-item" style="background-image: url(img/HydriveShell.jpg);"></div>
</div>
<a class="carousel-control-prev" href="#carouselExampleIndicators" role="button" data-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
</a>
<a class="carousel-control-next" href="#carouselExampleIndicators" role="button" data-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
</a>
</div>
暮色呼如
相关分类