Html 如何将页脚向下推到页面底部?

Html 如何将页脚向下推到页面底部?,html,css,Html,Css,目标:将我的页脚推到网页底部。不是一个粘性的页脚,但一旦滚动通过的内容,它是在底部。例如,在我的笔记本电脑上,它显示在底部,但在一个大显示器上,它并没有固定在底部,只在内容下方。即 但在大屏幕上: 页脚的css代码: text-align: center !important; padding: 3px; z-index: 1000000; background-color: white; color: black; margin-top: 20p

目标:将我的页脚推到网页底部。不是一个粘性的页脚,但一旦滚动通过的内容,它是在底部。例如,在我的笔记本电脑上,它显示在底部,但在一个大显示器上,它并没有固定在底部,只在内容下方。即 但在大屏幕上:

页脚的css代码:

    text-align: center !important;
    padding: 3px;
    z-index: 1000000;
    background-color: white;
    color: black;
    margin-top: 20px;
    box-sizing: content-box !important;
    margin-left: -10;
    position: relative;
    width: 103%;
    margin-bottom: -10px !important;
    border-radius: 3px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-wrap: wrap;
    max-height: 400px;
} 
body{
    box-sizing: border-box;
}

如果您还需要什么,请询问

请访问,看看是什么和,搜索有关SO的主题;如果您被卡住了,请发布您的尝试,注意输入和预期输出,最好是在一个try this footer{position:absolute;bottom:0;}中