0

固定フッターを作成したいのですが、コンテナdivの高さに困っているので960gsで可能ですか?%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>
4

1 に答える 1

0

私は 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>
于 2010-06-05T17:39:22.013 に答える