如何在整个内容结束后显示页脚? [英] How can I make a footer to be displayed after the whole content ends?

查看:85
本文介绍了如何在整个内容结束后显示页脚?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我网站的所有页面中显示的内容都是动态的。什么css我必须申请,以便只有在整个内容结束后显示页脚



我尝试过:



The content displayed are in dynamic form in all pages of my website. what css I have to apply so that the footer is displayed only after the whole content ends

What I have tried:

footer {
    bottom: 0;
    height: 100px;
    left: 0;
    position: absolute;
    width: 100%;
}

推荐答案

而不是绝对使用位置

页脚{

位置:固定;

}



它会起作用
Instead of position absolute use
footer {
position: fixed;
}

It will work


这篇关于如何在整个内容结束后显示页脚?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆