最佳答案
添加像这样的#masthead CSS 以使clearfix 工作:
.home #masthead {
height: 100vh;
float: left;
width: 100%;
}
关于html - Bootstrap : Clearfix div takes unexpected height,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38611200/