侧边栏被推下 [英] Sidebar getting pushed down
本文介绍了侧边栏被推下的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的侧边栏被推下,而不是与我的 main
类保持一致,您可以在我的小提琴中查看更多问题.(这是我很长时间以来第一次没有使用 bootstrap).
My sidebar is getting pushed down instead of staying inline with my main
class, you can view the issue more in my fiddle. (This is one of the first times I've not used bootstrap for a project in a very long time).
查看我的fiddle.
推荐答案
您必须选择一种显示方式.(block
,flex
,table
)
You have to choose a way of how to display them. (block
,flex
,table
)
我通过在 .container
类上添加 display:flex
使其工作.
i made it working by adding the display:flex
on .container
class.
jsfiddle https://jsfiddle.net/31rjm8qb/7/
这篇关于侧边栏被推下的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文