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;
}