简体   繁体   English

调整窗口大小时,引导轮播项目会相互堆叠

[英]Bootstrap carousel items get stacked on top of each other when window is re-sized

I am developing a carousel with Bootstrap which also needs to be responsive. 我正在使用Bootstrap开发旋转木马,它也需要响应。 It works pretty well when the screen width is bigger than 1200px , but when it's lower the elements get stacked one above each other. screen width大于1200px时,它可以1200px ,但是当screen width小于1200px时,元素彼此堆叠在一起。

This is the bootply with the code. 这是带有代码的bootply What I would like to get is that the items are displayed on the same line and eventually if one of them overflows, it has to go on a new line. 我想得到的是,这些items显示在同一行上,最终如果其中一项溢出,则必须在新行上进行。

Does some of you have a suggestion of what I am doing wrong? 你们中有人对我做错了什么建议吗?

Thanks in advance for your replies! 提前感谢您的回复!

your element has col-lg-2 class which has float:left for media > 1200px. 您的元素具有col-lg-2类,对于媒体> 1200px,该类具有float:left。 anything less than that does not float left. 小于此的值将不浮动。 Add other classes for different devices such as col-xs-2, col-sm-2, col-md-2 为其他设备添加其他类,例如col-xs-2,col-sm-2,col-md-2

暂无
暂无

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

相关问题 如何使用 jQuery 在页面中间居中 div 并在重新调整 window 大小时使其居中? - How do I center a div in the middle of the page using jQuery and keep it centered when window is re-sized? 调整浏览器大小时,jQuery重新运行脚本 - jQuery re-run script when browser is re-sized 使DIV停留在浏览器窗口的右上角。它应该留在那里,即使窗口重新调整尺寸也不会移动? - Making a DIV stay in the upper right corner against the browser window. It should stay there and never move even when the window is re-sized? 移动导航jQuery跳跃,并且重新调整大小时导航消失了吗? - Mobile navigation jQuery jumping, and navigation disappears when re-sized? 猫头鹰旋转木马 - 物品堆叠在一起 - Owl Carousel - Items are stacking on top of each other jQuery-如何使水平拆分器显示在中间,即使屏幕已调整大小 - jQuery - how to make a horizontal splitter to be shown at a middle even when the screen been re-sized jQuery-如何在调整屏幕大小时将分隔器置于中间 - jQuery - how to make a splitter to be at a middle when the screen been re-sized jQuery:重新调整所有子DIV的大小并重新定位,因为父DIV被调整了大小 - JQuery: Re-size and re-position all child DIVs as parent DIVs is re-sized 光滑的旋转木马幻灯片显示在彼此的顶部 - Slick carousel slides showing on top of each other 在IOS设备上制作动画时,2个相互叠加的动画元素会发生变化(z-index位置)? - 2 animated elements stacked on top of each other changing (z-index position) when animating on IOS Devices?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM