Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/80.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html css页脚不';不要停留在内容的末尾_Html_Css - Fatal编程技术网

Html css页脚不';不要停留在内容的末尾

Html css页脚不';不要停留在内容的末尾,html,css,Html,Css,我有一个网站,我想在每一页的末尾放一个页脚 页面login包含内容,但页脚不会保留在其末尾 登录 页脚 #footerContent{ position: relative; bottom: 0px; width: 100%; height: 48px; background-color: #646467; } 试试这个 #footerContent{ position: absolute; bottom: 0; width: 100%; height

我有一个网站,我想在每一页的末尾放一个页脚

页面
login
包含内容,但页脚不会保留在其末尾

登录

页脚

#footerContent{
    position: relative;
    bottom: 0px;
    width: 100%;
    height: 48px;
    background-color: #646467;
}
试试这个

#footerContent{
position: absolute;
bottom: 0;
width: 100%;
height: 48px;
background-color: #646467;
}

将您的
login div
css更改为

.login{

position: relative;
margin-top: 100px;
margin-left: 280px;
}
和页脚将出现在登录div之后

希望对您有所帮助

此链接对您有所帮助
#footerContent{
position: absolute;
bottom: 0;
width: 100%;
height: 48px;
background-color: #646467;
}
.login{

position: relative;
margin-top: 100px;
margin-left: 280px;
}