定位到最底部

 底部的文字相对于 body 容器定位 
 

body { position: relative; }  .footer { position: absolute; bottom: 0px; left: 50%; margin-left: -footer容器宽度的一半px(比方-200px;) }

<body style="height: 2000px;"><div class="footer" style="width: 400px;">0000w1234131</div></body> 
posted @ 2016-01-24 17:07  yxwkaifa  阅读(982)  评论(0编辑  收藏  举报