简体   繁体   English

图像和轮播不响应 bootstrap5.2

[英]image and carousel not responsive bootstrap5.2

I have a problem of responsiveness.我有反应问题。 When I open my website on the phone, the icon images that I put in the <i class="img-fluid material-icons"> tag disappear while they are visible on the computer.当我在手机上打开我的网站时,我放在<i class="img-fluid material-icons">标签中的图标图像会消失,而它们在计算机上是可见的。 I tried to add img-fluid from bootstrap but it doesn't work on it I don't understand why.我试图从引导程序添加 img-fluid 但它不起作用我不明白为什么。 On this link you can see all the code in full https://jsfiddle.net/z3hx2Lcr and in this link you can see result https://testportfolio111.000webhostapp.com/ I also have a responsivity problem in the carousel since I put the text effects in it.在此链接上,您可以看到完整https://jsfiddle.net/z3hx2Lcr的所有代码,在此链接中您可以看到结果https://testportfolio111.000webhostapp.com/我也有一个响应问题里面的文字效果。 When I open the site on my phone the carousel goes down, I tried to fix this problem but I can't.当我在手机上打开网站时,轮播出现故障,我试图解决这个问题,但我做不到。 Can anyone give me the solution?谁能给我解决方案?

there is a problem on your bottom sections, the element with class.skills-bar break the page and caused gap from right because it has fixed width value so change it to this code您的底部有问题,带有 class.skills-bar 的元素会破坏页面并导致右侧出现间隙,因为它具有固定的宽度值,因此将其更改为此代码

.skills-bar {
  width: 100%;
  max-width: 600px;
}

and in the container which your icons are change this in mobile version instead of并在您的图标所在的容器中将其更改为移动版本而不是

<div class="col animationtextinleft"></div>
<div class="col"></div>
<div class="col animationtextinright"></div>

use this用这个

<div class="col-12 animationtextinleft"></div>
<div class="col-12"></div>
<div class="col-12 animationtextinright"></div>

about your slider: your.carousel-item has height: 100vh change it to height: auto in mobile version and the reason why it's text is not showing is these slides(carousel-caption) get the class d-none关于您的 slider: your.carousel-item has height: 100vh 将其更改为 height: auto 在移动版本中,其文本未显示的原因是这些幻灯片(carousel-caption)获取 class d-none

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM