2014-12-02 42 views
0

我正在wordpress網站上工作。但我已經在html中編寫了主頁。我希望主頁響應。主題提供了響應或粘滯標題,但頁腳不粘。請幫助我使頁腳響應以及粘到底部。在html和css中粘在底部的頁腳

+0

請分享您的代碼,我們可以幫助您 – 2014-12-02 11:55:45

回答

0

如何嘗試這個:http://css-tricks.com/snippets/css/sticky-footer/

不想做一個網站的麻煩:

div class="page-wrap" 

    Content! 


footer class="site-footer" 
    I'm the Sticky Footer. 

* { 
    margin: 0; 
} 

html, body { 
    height: 100%; 
} 
.page-wrap { 
    min-height: 100%; 
    /* equal to footer height */ 
    margin-bottom: -142px; 
} 

.page-wrap:after { 
    content: ""; 
    display: block; 
} 

.site-footer, .page-wrap:after { 
    height: 142px; 
} 

.site-footer { 
    background: orange; 
} 

在發現這個? 訪問我們http://ctwebdeal.com/we-provide