bootstrap4中自带flex的css类
bootstrap4采用flex布局,一些css样式默认自带flex。也就是说在使用以下css的时候,不用在添加d-flex来定义flex,可以直接在里边添加flex属性(justify-content等)。
.row
.form-row
.form-inline
.form-inline .form-group
.form-inline .form-check
.btn-toolbar
.input-group
.input-group > .custom-file
.input-group-prepend
.input-group-append
.input-group-text
.nav
.navbar
.navbar > .container
.navbar > .container-fluid
.navbar-nav
.card
.card-deck
.card-group
.breadcrumb
.pagination
.progress
.progress-bar
.media
.list-group
.modal-dialog-centered
.modal-content
.modal-header
.modal-footer
.carousel-control-prev
.carousel-control-next
.carousel-indicators