css如何实现footer定位
导读:css实现footer定位 Document html,body{ width:100%; height:100%; margin:0; padding:0; } *{...
css实现footer定位
Document
html,body{
width:100%;
height:100%;
margin:0;
padding:0;
}
*{
margin:0;
padding:0;
}
.box{
width:100%;
min-height:100%;
padding-bottom:50px;
box-sizing:border-box;
background:#e4e4e4;
}
.content{
background:#fff;
border-bottom:1pxsolid#999;
}
button{
margin:10pxauto;
line-height:30px;
width:20%;
}
footer{
height:50px;
line-height:50px;
text-align:center;
margin-top:-50px;
background:#fff;
}
变长
内容
footer
functionbeLong(){
document.getElementById('content').style.height='1000px';
}
本文转载自中文网
声明:本文内容由网友自发贡献,本站不承担相应法律责任。对本内容有异议或投诉,请联系2913721942#qq.com核实处理,我们将尽快回复您,谢谢合作!
若转载请注明出处: css如何实现footer定位
本文地址: https://pptw.com/jishu/664658.html