我有一個非常好的主意讓我的項目更漂亮。
我想的是,頁腳是標準像下面的圖片:
粘滯頁腳,延伸到網站底部並進一步滾動時
當我現在滾動進一步下跌,該頁腳上升,怒吼咆哮,是所有像「IMPRESSUM」和「聯繫的東西」。
我在互聯網上搜索了各種解決方案,但找不到合適的東西。
我希望你能幫助我。
代碼我的頁腳:
HTML:
<footer>
<div class="footer">
<p class="footer-text"><a href="{{ path('homepage') }}">OneClick</a></p>
</div>
</footer>
CSS:
.footer {
position: fixed;
left: 0px;
right: 0px;
bottom: 0px;
width: 100%;
padding-top: 10px;
background: #F28724;
font-size: 1.3em;
}
.footer-text {
color: #3a3a3a;
}
.footer-text > a {
color: #3a3a3a;
display: table;
text-align: center;
margin-right: auto;
margin-left: auto;
}
在哪裏了嗎? – matthiasunt
sry,我修正了它 –
這將是偉大的有一個完整的HTML代碼或https://jsfiddle.net/例如 –