好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

StickyFooter(让页脚永远停靠在页面底部,而不是根据绝对位置)_html/css_WEB-






super胡

* {
margin:0;
padding:0;
}
html,body, #wrap
{
height: 100%;
}
body > #wrap
{
height: auto;
min-height: 100%;
}
#main
{
padding-bottom: 150px;
} /* must be same height as the footer */
#footer {
position: relative;
margin-top: -150px; /* negative value of footer height */
height: 150px;
clear:both;
border-color:1px solid red;
background:red;
}
/* CLEAR FIX*/
.clearfix:after
{content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
.clearfix {display: inline-block;
}
/* Hides from IE-mac */
.clearfix { height: 1%;/*zoom:1*/
}






查看更多关于StickyFooter(让页脚永远停靠在页面底部,而不是根据绝对位置)_html/css_WEB-的详细内容...

  阅读:26次