フッター テキストの単純な CSS スニペットで苦労しています。フッター テキストは常にページの最後と画面の最後に配置する必要があります。
質問する
3476 次
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 に答える
-1
bottom
次のプロパティを使用します。
#footer
{
position:absolute;
bottom:2px;
}
于 2009-10-14T11:31:31.590 に答える