我使用下面的代码来显示全高的div(带背景颜色)。Div全高 - 没有反应
HTML
<div class="container">
<div class="span5 fill">
<div class="test">
here is a lot of text....
</div>
</div>
</div>
CSS
@import url('http://twitter.github.com/bootstrap/assets/css/bootstrap.css');
* {
padding: 0;
margin: 0;
}
html,body {
height:100%;
}
.container {
height:100%;
}
.fill{
width:50%;
height:100%;
min-height:100%;
background-color:#990000;
color:#efefef;
}
其实它的工作原理,但它不是响应,尽管百分比HEIGH性能。
我该如何解决这个问题?背景应该始终有相同的高度内容 - 全高...
你有没有在你的CSS文件。测试? – gwalshington