2

フッター テキストの単純な CSS スニペットで苦労しています。フッター テキストは常にページの最後画面の最後に配置する必要があります。

4

3 に答える 3

0
* {
    margin: 0;
}
html, body {
    height: 100%;
}
.wrapper {
    min-height: 100%;
    height: auto !important;
    height: 100%;
    margin: 0 auto -142px; /* the bottom margin is the negative value of the footer's height */
}
.footer, .push {
    height: 142px; /* .push must be the same height as .footer */
}

/*

Sticky Footer by Ryan Fait
http://ryanfait.com/

*/
于 2009-10-14T11:10:15.903 に答える
0

あなたが選ぶことができる実用的な例として、私は以前に私たちのクライアントに対してこれとまったく同じことをしました:

押し下げページ- 固定位置ページ

于 2009-10-14T11:56:21.187 に答える
-1

bottom次のプロパティを使用します。

#footer
{
    position:absolute;
    bottom:2px;
}
于 2009-10-14T11:31:31.590 に答える