twitter-bootstrap行流体不根据它的孩子大小调整高度 [英] twitter-bootstrap row-fluid doesn't adjust height according to it's child size

查看:111
本文介绍了twitter-bootstrap行流体不根据它的孩子大小调整高度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有跟随小提琴。它本质上是一个

I have the following fiddle. It's essentially a

<div class="row-fluid">
  <div class="sidebar">
  </div>
</div>

我只是想知道为什么 row-fluid 不根据边栏高度调整高度?我可以看到侧边栏的高度为1450px,所以如果所有的容器div的默认调整,它的子div的大小,那么它也应该有1450px的高度。

I am just wondering why the row-fluid doesn't adjust the height based on the sidebar height? I can see the sidebar has a height of 1450px, so if all container div's by default adjust's to it's child div's size then it should also have a height of 1450px. If I check the height of the row-fluid, it stays at 0. How do I make this adjust accordingly?

推荐答案

添加class .clearfix to the row-fluid and it will work:)

Add class .clearfix to the row-fluid and it will work :)

这篇关于twitter-bootstrap行流体不根据它的孩子大小调整高度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆