Bootstrap 4 位于div底部的页脚,不使用绝对位置
我希望我的.card页脚始终位于div的末尾。 我想用bootstrap 4解决这个问题比用position absolute更好 在我试图解决它之前它看起来是怎样的 您可以使用并避免使用Bootstrap 4 位于div底部的页脚,不使用绝对位置,bootstrap-4,Bootstrap 4,我希望我的.card页脚始终位于div的末尾。 我想用bootstrap 4解决这个问题比用position absolute更好 在我试图解决它之前它看起来是怎样的 您可以使用并避免使用位置:absolute 只需添加以下内容: .newsbox { display: flex; flex-direction: column; height: 100%; } 您可以使用并避免使用位置:absolute 只需添加以下内容: .newsbox { display
位置:absolute
只需添加以下内容:
.newsbox {
display: flex;
flex-direction: column;
height: 100%;
}
您可以使用并避免使用位置:absolute
只需添加以下内容:
.newsbox {
display: flex;
flex-direction: column;
height: 100%;
}
.newsbox {
display: flex;
flex-direction: column;
height: 100%;
}