Ala*_*rte 4 html5 css3 responsive-design twitter-bootstrap
有人知道如何在Twitter Bootstrap中设置一个div,它总是处于全高(屏幕高度的100%),在所有分辨率下?
我真的很感激任何帮助.
Zim*_*Zim 10
基本上DIV的任何父容器也需要100% - 这包括BODY,HTML等.您可以在'bootstrap.css'之后添加一些CSS来覆盖Bootstrap CSS,如下所示:
html,body{height:100%;}
.container {
height:100%;
}
.fill{
width:100%;
height:100%;
min-height:100%;
background-color:#990000;
padding:10px;
color:#efefef;
}
Run Code Online (Sandbox Code Playgroud)
http://jsfiddle.net/skelly/zrBGw/