我在这里有一个非常烦人的问题。我正在使用我在网上找到的粘性页脚,效果很好,但是我在主要内容区域中有一些与页脚重叠的大图像。
有任何想法吗?链接到实例 - 点击界面查看
您的 div的高度#wrapper
应该padding-bottom
等于 的高度#footer
,在您的情况下似乎是 96px。当然,“在网络上找到的粘性页脚 [you]”应该提到这一点!
在你的#wrapper
你有一个负边距。把它拿出来,看起来还不错
#wrapper {
width: 90%;
padding: 10px;
min-height: 100%;
height: auto !important;
height: 100%;
margin: 0 auto; /** Removed the negative bottom margin **/
overflow: hidden;
background: white;
overflow: hidden;
}