【发布时间】:2021-11-22 13:08:54
【问题描述】:
我正在尝试制作页脚,但左侧和右侧显示了一些空白。如何去除空白?
这是我的代码:
<html>
<head>
<style>
footer {
background: none repeat scroll 0% 0% #DFDFDE;
padding: 120px 0px;
text-align: center;
position: relative;
}
.divider {
background: url('http://evablackdesign.com/wp-content/themes/ebd/images/footer-border.png')
repeat-x scroll center center transparent;
height: 7px;
width: 100%;
position: absolute;
top: -6px;
}
.container {
width: 930px;
margin: 0px auto;
}
</style>
</head>
<body>
<footer>
<div class="divider"></div>
<div class="container">
<h1>hiiiiiiiii</h1>
<br>
<h2>buyyyyyyyyyyyy</h2>
</div>
</footer>
</body>
</html>
标签定义文档或部分的页脚。
一个元素应该包含有关其包含元素的信息。
页脚通常包含文档的作者、版权信息、使用条款的链接、联系信息等。
【问题讨论】: