简体   繁体   English

Bootstrap旋转木马在滑动时会改变高度

[英]Bootstrap carousel slides height changing when sliding bug

I have been asked to work on the following website by my boss: 2tec.club 我的老板已要求我在以下网站上工作: 2tec.club

The site has been built using Wordpress which I am not an expert in, I have access to only the admin dashboard. 该网站是使用Wordpress构建的,我不是专家,我只能访问管理控制台。

The slider at the top has a strange bug, as you can see, every time the slide changes onto the next slide ,that particular slide for a brief second changes its height. 可以看到,顶部的滑块有一个奇怪的错误,每当幻灯片更改到下一张幻灯片时,该特定的幻灯片会在短时间内更改其高度。 This causes the content to be pushed down briefly which is extremely annoying for the visitors. 这导致内容被短暂地压低,这对于访问者来说是非常烦人的。 NOTE: this only happens on larger devices. 注意:这仅在较大的设备上发生。 It seems fine on my phone. 我的手机似乎还好。

I have tried using the Chrome developer tools to change the CSS rules with no luck. 我尝试过使用Chrome开发者工具来更改CSS规则,但是没有运气。 I cannot for the life of me figure this one out. 我无法为自己的生命弄清楚这一点。 Can someone please be kind enough to offer their help. 有人可以请您提供帮助吗? If so it would be much appreciated. 如果是这样,将不胜感激。

If you remove the slide class from your #myCarousel the problem goes away. 如果您从#myCarousel删除slide类,则问题将消失。

There's a number of other issues however. 但是,还有许多其他问题。 It seems as though you are including bootstrap twice, once for version 3.3.2 and once for version 3.3.6. 似乎您两次包含了引导程序,一次是针对3.3.2版,一次是针对3.3.6版。

You also mention that you're using bootstrap carousel, but you have a carousel.js that appears to be owl-carousel. 您还提到您正在使用引导轮播,但是您拥有的carousel.js似乎是猫头鹰轮播。

So if you're using bootstrap carousel, and you also have owl-carousel - there is the potential for unknown conflicts. 因此,如果您使用的是自举轮播,并且您还拥有猫头鹰轮播,则可能会发生未知冲突。

You should review all the files you're including when you get the chance. 您应该在有机会时查看包括的所有文件。

your theme is uploading the style.css before bootstrap.css... so its not able to overwrite the changes to bootstrap.. 您的主题是在bootstrap.css之前上传style.css ...,因此它无法覆盖对bootstrap的更改。

if you r not familiar with coding the easiest solution would be to use bigger images. 如果您不熟悉编码,最简单的解决方案是使用更大的图像。 at this moment your image size is 960 X 295... change it to 1200 X 368.. point is increase the width of the image... 此时您的图片大小为960 X 295 ...将其更改为1200 X 368 ..点是增加了图片的宽度...

let me know if it works 让我知道是否有效

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

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