在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頁腳直接使用'