【问题标题】:How to make footer reveal (display it under site container?)如何使页脚显示(在站点容器下显示?)
【发布时间】:2017-09-23 14:02:53
【问题描述】:

我正在开发这个 http://37.60.224.253/~silviogu/staging.com/ 与 wordpress、genesis 框架和移动优先由 Brian Gardner 主题。我正在尝试重现 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;
}

【问题讨论】:

    标签: html css wordpress footer


    【解决方案1】:

    我不确定,你可以尝试任何一个:

    1.将背景颜色white分配给类site-inner

    2. 将页脚移到具有site-container 类的div 之外。

    它应该可以工作。

    【讨论】:

    • 嗨,Bhavya,感谢您的帮助。我做到了,但我唯一得到的效果是更平滑的效果,但页脚在加载页面时仍会显示片刻。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2014-08-11
    • 1970-01-01
    • 1970-01-01
    • 2020-06-25
    • 1970-01-01
    • 2020-12-28
    • 1970-01-01
    相关资源
    最近更新 更多