フッターをページの下部に保持しながら、絶対位置を維持したいのですが、次のページ構造があります。
<div id="head"> </div> //want to keep its size auto and always on the top (position absolute)
<div id="body"> </div> //the children of #body have position absolute (keep size auto)
<div id="foot"> </div> //want to keep this at the bottom (just below body , if body size
changes then footer will also change (position absolute)
これどうやってするの?
編集
私は私の質問に明確ではなかったと思います、申し訳ありませんが、私の実際の問題は、 #main ( height : auto ) の内容が絶対であるため、それらの内容が main の高さに含まれていないことです (私はこれを推測しています)フッターが表示されるため、メインの高さが0だったのはなぜですか。これは私の実際の問題です。