![](/img/trans.png)
[英]How to make background image full of page and footer stick to page bottom?
[英]make background image stick to bottom of page
在此網站上,頁腳中有一個背景圖片,該圖片應貼在頁面底部。 我並不是說頁面的可見部分,而是頁面的最底部。 但是,在內容短的頁面上( 例如這樣的頁面),它會出現在底部上方一定距離處。
我當前使用的CSS是:
html {
background: url(../images/responsive/bg.svg) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
outline:0!important;
}
如何使用float屬性:
float: bottom;
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.