我想创建固定的脚注,但是,这是可能的与960GS,因为我有问题的高度与集装箱的div。我不能将其设置为%100。
<div class="container_12" >
<div class="grid_3" id="side-space"></div>
<div class="grid_6">
<div id="content-box"></div>
</div>
<div class="grid_3" id="side-space"></div>
</div>发布于 2010-06-06 01:39:22
我不认为960.gs和身高有太多关系。它只处理列和清除。从一开始就很好的框架。尝试将body设置为100%,然后将#content-box设置为100%。这是我偶然遇到的一个例子
<!-- IE in quirks mode -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<title>Fixed footer</title>
<style type="text/css">
body{
margin:0;
padding:0 0 <length> 0;
}
div#footer{
position:absolute;
bottom:0;
left:0;
width:100%;
height:<length>;
}
@media screen{
body>div#footer{
position: fixed;
}
}
* html body{
overflow:hidden;
}
* html div#content{
height:100%;
overflow:auto;
}
</style>
<div id="footer"> footer </div>
<div id="content"> content </div>https://stackoverflow.com/questions/2981317
复制相似问题