http://pixphoriad.haneuri.net/index2.php
顶部的div头部居中,但是页脚内容却没有居中。以下是页脚的css代码:
div#footer {
background-color: #000;
color: #fff;
position:relative;
height:350px;
clear: both;
margin-left: auto;
margin-right: auto;
text-align: center;
width: 100%;
}
<div class='center'>
,然后在CSS文件中加入.center { ...rules above ... }
。Center标签将包含全部页脚内容。 - Muhammad Umer