也许与此类似:
HTML:
<ul class="footer">
<li class="link">
Link
</li>
<li class="link">
Link
</li>
<li class="link">
Link
</li>
<li class="link">
Link
</li>
<li class="link">
Link
</li>
<li class="link">
Link
</li>
<li class="link">
Link
</li>
<li class="link">
Link
</li>
<li class="link">
Link
</li>
<li class="link">
Link
</li>
<li class="link">
Link
</li>
<li class="link">
Link
</li>
</ul>
CSS:
.footer{
background-color:#000000;
padding-left:5px;
}
.link{
color:#ffffff;
list-style:none;
display:inline-block;
width:200px;
text-align:left;
}
演示
Alternate Solution
:http: //jsfiddle.net/xU76e/1/
HTML:
<div class="footer">
<ul class="footer-links">
<li class="link">
Link
</li>
<li class="link">
Link
</li>
<li class="link">
Link
</li>
<li class="link">
Link
</li>
</ul>
<ul class="footer-links">
<li class="link">
Link
</li>
<li class="link">
Link
</li>
<li class="link">
Link
</li>
<li class="link">
Link
</li>
</ul>
<ul class="footer-links">
<li class="link">
Link
</li>
<li class="link">
Link
</li>
</ul>
</div>
CSS:
.footer{
background-color:#000000;
overflow:auto;
}
.footer-links{
padding-left:5px;
float:left;
padding:0px 20px;
list-style:none;
}
.link{
color:#ffffff;
}