也許這是一個粘腳的問題,也許不是。不太確定。我想在我的頁腳內使用float:left
並排排列,但它們似乎堆疊在一起,我不確定爲什麼。CSS:頁腳內部粘有頁腳和div。 Float left
HTML:
<div id="footer_container">
<div id="footer_content">
</div>
<div id="footer_content">
</div>..etc
CSS:
#footer_content {
font-size:18px;
float:left;
padding:0 35px;
color:#EEEEEE;
text-align:left;
height:150px;
width:150px;
}
加上所有常見的粘頁腳的東西:
.wrapper {
min-height: 100%;
height: auto !important;
height: 100%;
margin: 0 auto -4em;
}
#footer, .push {
height: 175px;
}
#footer_content a{
color:#989393;
}
#footer_container{
width:1100px;
height:175px;
}
請考慮使用jsFiddle.net – Sparky