我的自举轮播在每个幻灯片上的宽度都不同。我希望宽度保持不变。
我尝试在CSS中设置宽度,但是没有用。我也尝试将div容器弄乱,但这似乎也不起作用。我需要在哪里或什么位置添加内容以使轮播保持相同的宽度?
<section class="about-area"><div class="container-fluid">
<div class="container-fluid">
<h1><center><font color="white">Innovation in Corona</font> <img src="img/text.png"></center></h1><br>
</div>
<div id="carouselExampleIndicators" class="carousel slide" data-ride="carousel">
<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">
<div class="carousel-item active">
<div class="row h-100 justify-content-center align-items-center">
<div class="col-lg-4 about-left">
<img class="img-fluid" src="img/text.jpg" alt="home screen">
</div><!--larger image column-->
<div class="col-lg-4 about-right p-40">
<div class="begining-content">
<div class="single_about">
<h2><font color="white">Text</font></h2>
<p><font color="white">
Text</font>
</p>
</div>
<div class="single_about">
<h2><font color="white">Text</font></h2>
<p>
<font color="white">Text</font>
</p>
</div>
</div>
</div><!--smaller text column-->
</div><!--row-->
</div>
<div class="carousel-item">
<div class="row h-100 justify-content-center align-items-center">
<div class="col-lg-4 about-left">
<img class="img-fluid" src="img/text.png" alt="home screen">
</div><!--larger image column-->
<div class="col-lg-4 about-right p-40">
<div class="begining-content">
<div class="single_about">
<h2><font color="white">Text</font></h2>
<p><font color="white">Text</font>
</p>
</div>
</div>
</div>
</div>
</div>
<div class="carousel-item">
<div class="row h-100 justify-content-center align-items-center">
<div class="col-lg-4 about-left">
<img class="img-fluid" src="img/test.PNG" alt="home screen">
</div><!--larger image column-->
<div class="col-lg-4 about-right p-40">
<div class="begining-content">
<div class="single_about"><font color="white">
</div>
</div>
</div><!--smaller text column-->
</div><!--row-->
</div>
</div>
<a class="carousel-control-prev" href="#carouselExampleIndicators" 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="#carouselExampleIndicators" role="button" data-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div><br><br>
</div>
</section>