html页脚固定在底部的方法

<style type="text/css">
        html {
            height: 100%;
        }

        body {
            height: 100%;
            margin: 0;
            padding: 0;

        }

        .container, .jumbotron {
            min-height: 88%;
        }

        .footer {
            position: absolute;
            width: 100%;
            height: 50px;
            z-index: 10;
            text-align: center;
        }
    </style>

container,jumbotron的高度能够根据footer的高度随机调整css

相关文章
相关标签/搜索