尽管我将页脚的宽度设置为100%,但它的宽度方面却超过了100%。任何想法为什么?我知道问题是宽度,因为当我删除100%时,它不显示滚动条。该页面被分解为身体>包装>页脚 这里是我的代码:将我的页脚宽度设置为100%显示滚动条
#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;
}
而且有身体的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;
}
谢谢jsfiddle是一个非常有用的工具! –