Full screen height container Bootstrap

点点圈 提交于 2021-02-11 12:23:00

问题


Can't get the container to stretch the full height of the screen:

<body>
    <div class="container-fluid h-100" style="background-color:#0c5460;">
        a
    </div>
</body>

I tried the h-100 and declaring height:100% and min-height:100% container-fluid and container but it never stretches beyond content that it contains

What am i missing?


回答1:


Need

    html,body,.container {
        height: 100%;
    }


来源:https://stackoverflow.com/questions/65944211/full-screen-height-container-bootstrap

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!