2016-05-16 24 views

Antwort

0

diese Sie nach einer klebrigen Fußzeilenleiste

<html> 
    <body> 
     <div class="wrapper"> 
      <div class="contents"> 
       <div class="clearfix"> 
        <!-- some contents --> 
       </div> 
      </div> 
      <footer> 
       <div class="clearfix"> 
        <!-- some contents --> 
       </div> 
      </footer> 
     </div> 
    </body> 
</html> 

CSS

html, body { 
    background-color: #F3F3F3; 
    height: 100%; 
    margin: 0; 
    padding: 0; 
} 

.wrapper { 
    position: relative; 
    min-height: 100%; 
} 

.contents { 
    height: 1500px; 
} 

footer { 
    background-color: rgb(34, 42, 53); 
    position: absolute; 
    bottom: 0; /* absolutely bottom */ 
    width: 100%; 
} 

.clearfix { 
    padding: 20px; 
} 
+0

Blick auf die Fußzeile, um zu überprüfen, ob die Fußzeile klebt, ändern '.contents' Höhe. – keziah

Verwandte Themen