Css在wordpress中的固定位置覆盖页脚

时间:2014-01-08 10:16:19

标签: html css wordpress

我的页面是link。我想在页脚下设置导航。 我的自定义css代码,我已设置为页脚,但页脚仍然被覆盖。

#scroller {
padding: 5px;
background-color: white;
position: fixed;
bottom: 0;
left: 0px;
right: 0px;
_position: absolute;
-ie: expression(this.style.top=document.documentElement.clientHeight-this.offsetHeight+document.documentElement.scrollTop);
}

你有什么想法吗?谢谢:))

1 个答案:

答案 0 :(得分:1)

由于导航栏具有绝对位置,因此它与页脚重叠。

您必须将nav menu div放在footer div下方,而不是position:absolute,或者使用填充底部(height of the nav menu+current padding which is 84+40=124px)来页脚。

.site-footer {
border-top: 1px solid #F5F5F5;
color: #999;
font-size: 14px;
padding: 40px 0 124px 0;
text-align: center;
}
相关问题