當我做的位置是:絕對的,寬度:100%頁腳設置太多的寬度爲我的屏幕,這裏是我的代碼:頁腳寬度設置太多
<p class="footer" style="font-weight:bold;color:#D9D9D9;border: 15px solid #272727;letter-spacing:1pt;word-spacing:2pt;font-size:10px;text-align:center;font-family:courier new, courier, monospace;line-height:0;"> Text </p>
CSS:
.footer{
position: absolute;
width:100%;
min-width:100%;
text-align: center;
bottom: 0px;
}
和我要讓他留在即使沒有所著,因爲在其他頁面頁腳頁底部進入屏幕
試試不使用位置絕對 –
@ShaigKhaligli OP希望在頁面底部的頁腳的住宿。 – TylerH