虽然我将页脚的宽度设置为 100%,但它在宽度方面延伸到 100% 以上,并且有一个滚动条。任何想法为什么?我知道问题是宽度,因为当我删除 100% 时,它不会显示滚动条。该页面被分解为 body>wrapper>footer 这是我的代码:
 #footer {
  margin-top: 30px;
  color: white !important;
  padding-bottom: 15px;
  background: black;
  text-align: center;
  padding: 20px;
  height: 40px;
  min-width: 1000px;
  width:100%;
  position:absolute;
  bottom:0;
}
还有body css:
body {
  font: normal 12pt Georgia, serif;
  color: #111;
  background: #990000;
  margin: 0 auto;
  text-align: center;
  background-position: 50% 50%;
  min-height: 100%;
  margin:0;
    padding:0;
    height:100%;
}
和包装器css:
#wrapper {
    min-height:100%;
    position:relative;
}