在HTML中,我尝试制作页脚,但是每次执行此操作时,都会在左侧添加页边距。新增保证金HTML
这是我的页脚代码;
<div id="footer"> tester </div>
#footer {
background-image: url(images/backgroundrpatternfooter.png);
background-repeat: repeat;
position : absolute;
bottom : 0;
height : 40px;
width : 1800px;
margin: 0;
}
可能这个'footer'包裹在另一个div上,有一些'margin:left'加入。 – 2014-08-29 10:01:29
重新创建[jsFiddle](http://jsfiddle.net)。它将帮助其他人更好地进行调试。 – 2014-08-29 10:05:12
尝试添加一个额外的属性到你的页脚css'clear:both;'而不是使用div与id页脚直接使用'