div紧靠浏览器底部

<body>
    <div class='bottom'>
        这个div紧贴浏览器底部,且居中显示
    </div>
</body>

css代码:

.bottom{
    position: absolute;
    bottom: 0;
     100%;
    text-align: center;
}

  

原文地址:https://www.cnblogs.com/mengfff/p/5054305.html