html:
<div class="wrapper>
<div class="content">主体内容</div>
</div>123
css:
html,body{
height:100%
}
.wrapper{
min-height:100%//使内容高度和body高度一样
margin-bottom:-70px向上缩减70px,使footer在可视范围
}
.content{
margin-bottom:130px//控制主体内容和底部高度之间距离
}
.footer{
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)