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%;
}
最佳答案
将这些规则应用到 center
标签...
overflow: auto;
display: inline-block;
顺便说一句,center 标签已经过时了,我直到现在才看到它。但无论如何..
我喜欢整个网站...它显示出热情。
关于html - 水平居中页脚 div,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32663042/