如何让页脚显示(显示它在网站容器?)

问题描述:

我正在开发这个http://37.60.224.253/~silviogu/staging.com/与wordpress,创始框架和移动首先由布赖恩加德纳主题。我正在尝试重现briangardner.com中显示的页脚显示效果,但无法弄清楚如何在页面加载时避免页脚在站点容器上显示。如何让页脚显示(显示它在网站容器?)

下面是我使用的代码(由briangardner.com复制):我不知道

.site-container { 
    background-color: #fff; 
    margin-bottom: 300px; 
    z-index: 9999 !important; 
} 

.site-footer { 
    bottom: 0; 
    height: 300px; 
    position: fixed; 
    width: 100%; 
    z-index: -9999 !important; 
} 

,你可以尝试任何一个:

指定的背景颜色whitesite-inner

2.将页脚移至div外部site-container

它应该工作。

+0

嗨Bhavya,感谢您的帮助。我做到了,但我唯一获得的效果是平滑的,但页面加载时页脚仍显示一会儿。 – sigul