Html 我需要使旋转木马中的文本具有响应性
我使用过Bootstrap4类和媒体查询,但当我在电话上查找网站时,文本消失了 -----任何文本------ -----任何文本------- ---任何文本---Html 我需要使旋转木马中的文本具有响应性,html,css,Html,Css,我使用过Bootstrap4类和媒体查询,但当我在电话上查找网站时,文本消失了 -----任何文本------ -----任何文本------- ---任何文本--- 在媒体脚本中检查文本类的CSS,可能显示属性设置为“无”。这些类别要么是“n26动画弹跳右显示-2”,要么是“动画弹跳左显示”。我制作了这一类,并且响应迅速。请检查一下。谢谢 @仅媒体屏幕和(最大宽度:767px){ .carousel标题{显示:无;} } -----任何文本------- -----任何文本-
在媒体脚本中检查文本类的CSS,可能显示属性设置为“无”。这些类别要么是“n26动画弹跳右显示-2”,要么是“动画弹跳左显示”。我制作了这一类,并且响应迅速。请检查一下。谢谢
@仅媒体屏幕和(最大宽度:767px){
.carousel标题{显示:无;}
}
-----任何文本-------
-----任何文本-------
-----任何文本-------
-----任何文本-------
-----任何文本-------
-----任何文本-------
即使我删除了类,并且display属性也没有设置为none,它也不会显示文本。然后检查javaScript是否存在jQuery为特定屏幕大小调用的其他类。使用响应式设计模式(ctrl+shift+m)在firefox开发者版中运行您的网站,移动屏幕大小并检查屏幕大小文本是否消失。找出类和css以及屏幕大小,为相同的屏幕大小添加css以显示文本。我已经尝试过了,但它仍然不起作用,它消失了
</div>
</div>
<div class="carousel-item">
<img class="d-block w-100" src=" img2.png" alt="Second slide" style="height: auto">
<div class="carousel-caption d-none d-md-block n28">
<h1 class="n26 animated bounceInRight display-2" style="animation-delay: 0.5s">-----any text -------</h1>
<h3 class="animated bounceInLeft" style="animation-delay: 0.5s">-----any text -------</h3>
</div>
</div>
<div class="carousel-item">
<img class="d-block w-100" src="img3.png" alt="Third slide" style="height: auto">
<div class="carousel-caption d-none d-md-block n28">
<h1 class="n26 animated bounceInRight display-2" style="animation-delay: 0.5s">-----any text -------</h1>
<h3 class="animated bounceInLeft" style="animation-delay: 0.5s">-----any text -------</h3>
</div>
</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>
.carousel-caption{
position: absolute;
top: 30%;
transform: translateY(-50);}
.carousel-caption h1{
font-size: 500%;}
.carousel-caption h3{
font-size: 110%;
font-family: "Poppins", sans-serif;}